projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f7ae76e
)
Return the value immediately.
author
Derick Rethans
<github@derickrethans.nl>
Thu, 7 Jul 2011 13:06:03 +0000 (14:06 +0100)
committer
Derick Rethans
<github@derickrethans.nl>
Thu, 7 Jul 2011 13:06:03 +0000 (14:06 +0100)
twig.c
patch
|
blob
|
history
diff --git
a/twig.c
b/twig.c
index
c18b4a6
..
c1239a8
100644
(file)
--- a/
twig.c
+++ b/
twig.c
@@
-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);
}
}
/*