Commit 9690c3f6 authored by Jack'lul's avatar Jack'lul

this should fix 'Invalid argument supplied for foreach()' error

parent 72ffc486
...@@ -75,6 +75,9 @@ class Entity ...@@ -75,6 +75,9 @@ class Entity
} elseif ($array_of_array_obj) { } elseif ($array_of_array_obj) {
foreach ($object->$name as $elm) { foreach ($object->$name as $elm) {
$temp = null; $temp = null;
if (!is_array($elm) && !is_object($elm)) {
continue;
}
foreach ($elm as $obj) { foreach ($elm as $obj) {
$temp[] = $this->reflect($obj); $temp[] = $this->reflect($obj);
} }
......
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