Commit 7be898ac authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Prevent undefined array key in SearchController

Resolves: #98243
Releases: main, 11.5
Change-Id: I4347b6f293e582d00cffa4105d5a2641bf425bf9

Tested-by: Simon Schaufelberger's avatarSimon Schaufelberger <>
Tested-by: core-ci's avatarcore-ci <>
Tested-by: Susanne Moog's avatarSusanne Moog <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Simon Schaufelberger's avatarSimon Schaufelberger <>
Reviewed-by: Susanne Moog's avatarSusanne Moog <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
parent caec6d15
......@@ -212,7 +212,7 @@ class SearchController extends ActionController
// Indexer configuration from Extension Manager interface:
$this->indexerConfig = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('indexed_search');
$this->enableMetaphoneSearch = (bool)$this->indexerConfig['enableMetaphoneSearch'];
$this->enableMetaphoneSearch = (bool)($this->indexerConfig['enableMetaphoneSearch'] ?? false);
// If "_sections" is set, this value overrides any existing value.
if ($searchData['_sections'] ?? false) {
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