Made properties return properly.

This commit is contained in:
Derick Rethans
2011-07-07 13:06:13 +01:00
parent 4e899caee4
commit 508bb66bf7
+2 -1
View File
@@ -656,7 +656,8 @@ PHP_FUNCTION(twig_template_get_attributes)
}
convert_to_string(item);
return_value = TWIG_PROPERTY(object, Z_STRVAL_P(item)); // this is obviously wrong
ret = TWIG_PROPERTY(object, Z_STRVAL_P(item)); // this is obviously wrong
RETVAL_ZVAL(ret, 1, 0);
}
}
/*