From 9b7fbe29ce6ed544f2f7d6203b26fb6cec3f7f40 Mon Sep 17 00:00:00 2001 From: "Ian P. Christian" Date: Wed, 7 Jan 2015 07:52:29 -0500 Subject: [PATCH] Recursive function too deep Signed-off-by: Ian P. Christian --- 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 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;