diff --git a/src/Helper/Navigation/Menu.php b/src/Helper/Navigation/Menu.php index 67e5b252c..98980cd19 100644 --- a/src/Helper/Navigation/Menu.php +++ b/src/Helper/Navigation/Menu.php @@ -269,21 +269,21 @@ protected function renderNormalMenu( $liActiveClass ) { $html = ''; - + $escaper = $this->view->plugin('escapeHtmlAttr'); assert($escaper instanceof EscapeHtmlAttr); $foundPage = null; $foundDepth = 0; - + if ($onlyActive) { - // find deepest active - $found = $this->findActive($container, $minDepth, $maxDepth); - if ($found) { - $foundPage = $found['page']; - $foundDepth = $found['depth']; - } - } + // find deepest active + $found = $this->findActive($container, $minDepth, $maxDepth); + if ($found) { + $foundPage = $found['page']; + foundDepth = $found['depth']; + } + } // create iterator $iterator = new RecursiveIteratorIterator(