Use not identical (!==) for object comparison
This commit is contained in:
parent
043aa1e14e
commit
462c964943
@ -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