Return the value immediately.

This commit is contained in:
Derick Rethans
2011-07-07 14:06:03 +01:00
parent f7ae76ef4b
commit 9f6495f447
+2 -2
View File
@@ -672,8 +672,8 @@ PHP_FUNCTION(twig_template_get_attributes)
}
convert_to_string(item);
ret = TWIG_PROPERTY(object, Z_STRVAL_P(item)); // this is obviously wrong
RETVAL_ZVAL(ret, 1, 0);
ret = TWIG_PROPERTY(object, item);
RETURN_ZVAL(ret, 1, 0);
}
}
/*