Skip to content

Commit

Permalink
[BUGFIX] Prevent undefined array keys in AbstractMenuContentObject
Browse files Browse the repository at this point in the history
Resolves: #98248
Releases: main, 11.5
Change-Id: I365236b8aa959db5092a7c8ba1731674b12f053c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75811
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Jochen <rothjochen@gmail.com>
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Jochen <rothjochen@gmail.com>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
  • Loading branch information
o-ba committed Sep 21, 2022
1 parent 9a70d5f commit f0cb504
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1052,10 +1052,10 @@ protected function prepareMenuItemsForBrowseMenu($specialValue, $sortingField, $
}
}
if ($this->conf['special.']['items.']['prevnextToSection'] ?? false) {
if (!is_array($recArr['prev']) && is_array($recArr['prevsection_last'])) {
if (!is_array($recArr['prev'] ?? false) && is_array($recArr['prevsection_last'] ?? false)) {
$recArr['prev'] = $recArr['prevsection_last'];
}
if (!is_array($recArr['next']) && is_array($recArr['nextsection'])) {
if (!is_array($recArr['next'] ?? false) && is_array($recArr['nextsection'] ?? false)) {
$recArr['next'] = $recArr['nextsection'];
}
}
Expand Down

0 comments on commit f0cb504

Please sign in to comment.