Commit 79ca520d authored by Benni Mack's avatar Benni Mack Committed by Andreas Fernandez
Browse files

[BUGFIX] Fix undefined key warning in indexed_search

Resolves: #99270
Related: #99572
Releases: main, 11.5
Change-Id: I0b3aed81b7ee5d8449c1db962b423fc4fb542287
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77561


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 7d1db267
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment