Commit 64540849 by Seldaek

* Fixed reading object properties handled by __get()

git-svn-id: svn://dwoo.org/dwoo/trunk@92 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent 23a6b728
......@@ -1126,7 +1126,7 @@ class Dwoo
return null;
}
} else {
if (is_object($data) && property_exists($data, $m[2][$k])) {
if (is_object($data)) {
$data = $data->$m[2][$k];
} else {
return null;
......@@ -1298,7 +1298,7 @@ class Dwoo
return null;
}
} elseif ($sep === '->') {
if (is_object($cur) && property_exists($cur, $m[2][$k])) {
if (is_object($cur)) {
$cur = $cur->$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