Commit 75a6ad71 authored by Torben Hansen's avatar Torben Hansen Committed by Oliver Bartsch
Browse files

[BUGFIX] Fix undefined array warning for indexed_search

Fix PHP8 undefined array key in indexed_search when
typoscript configuration is not included.

Resolves: #94631
Releases: master
Change-Id: If068c5a1b5bc0d1962b922312adf2bf2efc05e50
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70064

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent 0893b693
......@@ -40,7 +40,7 @@ class TypoScriptFrontendHook
public function indexPageContent(array $parameters, TypoScriptFrontendController $tsfe)
{
// Determine if page should be indexed, and if so, configure and initialize indexer
if (!$tsfe->config['config']['index_enable']) {
if (!($tsfe->config['config']['index_enable'] ?? false)) {
return;
}
......
Markdown is supported
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