From 462c96494364d5da3eba2d1762584d6376d5a6f8 Mon Sep 17 00:00:00 2001 From: Kasun Chathuranga Date: Wed, 1 May 2013 20:12:46 +0530 Subject: [PATCH] Use not identical (!==) for object comparison --- libraries/navigation/Nodes/Node.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/navigation/Nodes/Node.class.php b/libraries/navigation/Nodes/Node.class.php index a1f0e3b442..9a9464f7e4 100644 --- a/libraries/navigation/Nodes/Node.class.php +++ b/libraries/navigation/Nodes/Node.class.php @@ -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;