Skip to content

Commit

Permalink
[BUGFIX] Skip invalid pages when building menus
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Nov 11, 2024
1 parent fad833c commit e876067
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit e876067

Please sign in to comment.