Recursive function too deep

Signed-off-by: Ian P. Christian <ichristian@users.sf.net>
This commit is contained in:
Ian P. Christian 2015-01-07 07:52:29 -05:00 committed by Marc Delisle
parent 26ce63dbde
commit 9b7fbe29ce

View File

@ -283,7 +283,7 @@ class Node
$retval = true;
} else {
foreach ($this->parent->children as $child) {
if ($child != $this
if ($child !== $this
&& ($child->type == Node::OBJECT || $child->hasChildren(false))
) {
$retval = true;