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;