diff --git a/libraries/navigation/Nodes/Node.class.php b/libraries/navigation/Nodes/Node.class.php index c7593bb01d..baa08a2c03 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;