From 368326d8645ac11d4b3a7a100bb25a657aff5515 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Chris=20M=C3=BCller?= <typo3@krue.ml>
Date: Tue, 16 May 2023 11:58:10 +0200
Subject: [PATCH] [BUGFIX] Avoid undefined array key "enableMetaphoneSearch"

Resolves: #100883
Releases: main, 12.4, 11.5
Change-Id: I89f566a1bdf45f214a175cd389ef143c6334cda3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79056
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
---
 .../Classes/Controller/AdministrationController.php             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/indexed_search/Classes/Controller/AdministrationController.php b/typo3/sysext/indexed_search/Classes/Controller/AdministrationController.php
index a924efdef006..3c000e17308d 100644
--- a/typo3/sysext/indexed_search/Classes/Controller/AdministrationController.php
+++ b/typo3/sysext/indexed_search/Classes/Controller/AdministrationController.php
@@ -148,7 +148,7 @@ class AdministrationController extends ActionController
     {
         $this->pageUid = (int)($this->request->getQueryParams()['id'] ?? 0);
         $this->indexerConfig = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('indexed_search');
-        $this->enableMetaphoneSearch = (bool)$this->indexerConfig['enableMetaphoneSearch'];
+        $this->enableMetaphoneSearch = (bool)($this->indexerConfig['enableMetaphoneSearch'] ?? false);
 
         parent::initializeAction();
     }
-- 
GitLab