From a9d8e7daf23bb1ae6d9e4b550ab72ae54c48b9da Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Mon, 14 Nov 2022 08:53:54 +0100 Subject: [PATCH] [BUGFIX:P:11.5] Proper check for config.index_enable Not initialized variable leads to exception using PHP 8+ in https://github.com/TYPO3-Solr/ext-solr/blob/bfe1599a7533ed8aff0060ab932067ecd32dacad/Classes/IndexQueue/FrontendHelper/PageIndexer.php#L256 Fixes: #3403 Ports: #3404 --- Classes/IndexQueue/FrontendHelper/PageIndexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/IndexQueue/FrontendHelper/PageIndexer.php b/Classes/IndexQueue/FrontendHelper/PageIndexer.php index 4dd47bcc0c..d1e5b0a086 100644 --- a/Classes/IndexQueue/FrontendHelper/PageIndexer.php +++ b/Classes/IndexQueue/FrontendHelper/PageIndexer.php @@ -253,7 +253,7 @@ public function hook_indexContent(array $params, TypoScriptFrontendController $p $configuration = Util::getSolrConfiguration(); $logPageIndexed = $configuration->getLoggingIndexingPageIndexed(); - if (!$this->page->config['config']['index_enable']) { + if (!$this->page->config['config']['index_enable'] ?? false) { if ($logPageIndexed) { $this->logger->log( SolrLogManager::ERROR,