mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
Check the property regardless of whether tmp_item is valid/set.
This commit is contained in:
@@ -660,10 +660,7 @@ PHP_FUNCTION(twig_template_get_attributes)
|
|||||||
tmp_properties = TWIG_GET_ARRAY_ELEMENT(tmp_class, "properties", strlen("properties"));
|
tmp_properties = TWIG_GET_ARRAY_ELEMENT(tmp_class, "properties", strlen("properties"));
|
||||||
tmp_item = TWIG_GET_ARRAY_ELEMENT_ZVAL(tmp_properties, item);
|
tmp_item = TWIG_GET_ARRAY_ELEMENT_ZVAL(tmp_properties, item);
|
||||||
|
|
||||||
if (tmp_item) {
|
tmp_object_item = TWIG_PROPERTY(object, item);
|
||||||
convert_to_string(tmp_item);
|
|
||||||
tmp_object_item = TWIG_PROPERTY(object, Z_STRVAL_P(tmp_item));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tmp_item || tmp_object_item || TWIG_ARRAY_KEY_EXISTS(object, item) // FIXME: Array key? is that array access here?
|
if (tmp_item || tmp_object_item || TWIG_ARRAY_KEY_EXISTS(object, item) // FIXME: Array key? is that array access here?
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user