diff --git a/typo3/sysext/indexed_search/Classes/Controller/SearchController.php b/typo3/sysext/indexed_search/Classes/Controller/SearchController.php index ecf1c0cbc6de0ffa7727a73bf66969587d73f365..93bb34f39d5aef03c3d4a7a827191dfc59f105fa 100644 --- a/typo3/sysext/indexed_search/Classes/Controller/SearchController.php +++ b/typo3/sysext/indexed_search/Classes/Controller/SearchController.php @@ -422,11 +422,11 @@ class SearchController extends ActionController if ($rlParts[2] ?? false) { $theId = $rlParts[2]; $theRLid = 'rl2_' . $rlParts[2]; - } elseif ($rlParts[1]) { + } elseif ($rlParts[1] ?? false) { $theId = $rlParts[1]; $theRLid = 'rl1_' . $rlParts[1]; } else { - $theId = $rlParts[0]; + $theId = $rlParts[0] ?? 0; $theRLid = '0'; } $sectionName = $this->getPathFromPageId((int)$theId);