Recursive function too deep
Signed-off-by: Ian P. Christian <ichristian@users.sf.net>
This commit is contained in:
parent
26ce63dbde
commit
9b7fbe29ce
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user