Use not identical (!==) for object comparison

This commit is contained in:
Kasun Chathuranga 2013-05-01 20:12:46 +05:30
parent 043aa1e14e
commit 462c964943

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;