Skip to content

Commit

Permalink
Merge 066fbcf into 05bec6c
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed Mar 5, 2023
2 parents 05bec6c + 066fbcf commit f6b1048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ protected function autoRender(array $menu, $level = 1)
$html[] = '<' . $tagName . $elementId . $class . '>';
}
$html[] = $this->renderItemLink($page);
if (($page['active'] || $expandAll) && $page['hasSubPages'] && $level < $levels) {
if (($page['active'] || $expandAll) && ($page['hasSubPages'] ?? false) && $level < $levels) {
$subPages = $this->getMenu($page['uid']);
$subMenu = $this->parseMenu($subPages);
if (0 < count($subMenu)) {
Expand Down

0 comments on commit f6b1048

Please sign in to comment.