Commit f1766640 by seldaek

Fixed a property reading bug on objects that implemented __get but not __isset,…

Fixed a property reading bug on objects that implemented __get but not __isset, implementing __isset is however very much recommended fixes #36 git-svn-id: svn://dwoo.org/dwoo/trunk@290 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent e756cf9f
......@@ -17,6 +17,8 @@
* Fixed a bug when using the autoEscape feature with sub-templates (the
compiled sub-template couldn't access the dwoo charset property,
resulting in a fatal error)
* Fixed a property reading bug on objects that implemented __get but not
__isset, implementing __isset is however very much recommended
[2009-07-18] 1.1.0
! BC Break: Dwoo::initGlobals() is only called once during the Dwoo object
......
......@@ -1244,7 +1244,7 @@ class Dwoo
return null;
}
} else {
if (is_object($data) && ($safeRead === false || isset($data->$m[2][$k]))) {
if (is_object($data) && ($safeRead === false || isset($data->$m[2][$k]) || is_callable(array($data, '__get')))) {
$data = $data->$m[2][$k];
} else {
return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment