diff --git a/library/Icinga/Web/Navigation/NavigationItem.php b/library/Icinga/Web/Navigation/NavigationItem.php index 0f31a4209..12979bd75 100644 --- a/library/Icinga/Web/Navigation/NavigationItem.php +++ b/library/Icinga/Web/Navigation/NavigationItem.php @@ -340,7 +340,7 @@ class NavigationItem implements IteratorAggregate */ public function hasChildren() { - return !$this->getChildren()->isEmpty(); + return ! $this->getChildren()->isEmpty(); } /** @@ -791,7 +791,7 @@ class NavigationItem implements IteratorAggregate public function getRender() { if ($this->render === null) { - return true; + return $this->getUrl() !== null; } return $this->render;