diff --git a/Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php b/Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php index bc9fdb272..745dd3e6b 100644 --- a/Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php +++ b/Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php @@ -413,6 +413,9 @@ public function parseMenu(array $pages): array $total = count($pages); $processedPages = []; foreach ($pages as $index => $page) { + if (!is_array($page) || !isset($page['uid'])) { + continue; + } $count++; $class = []; $originalPageUid = $page['uid'];