From a9df0c757c3c59ef0a6186a20fce4dd46b303504 Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Fri, 31 May 2024 12:06:18 +0200 Subject: [PATCH] [BUGFIX] Fix check if fulltext file group exists in `ToolboxController` (#1237) Co-authored-by: Sebastian Meyer --- Classes/Controller/ToolboxController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/Controller/ToolboxController.php b/Classes/Controller/ToolboxController.php index 67c0580a2..0b6c39527 100644 --- a/Classes/Controller/ToolboxController.php +++ b/Classes/Controller/ToolboxController.php @@ -498,11 +498,11 @@ private function isFullTextEmpty(): bool { $fileGrpsFulltext = GeneralUtility::trimExplode(',', $this->extConf['files']['fileGrpFulltext']); while ($fileGrpFulltext = array_shift($fileGrpsFulltext)) { - $fullTextFile = $this->currentDocument->physicalStructureInfo[$this->currentDocument->physicalStructure[$this->requestData['page']]]['files'][$fileGrpFulltext]; - if (!empty($fullTextFile)) { - break; + $files = $this->currentDocument->physicalStructureInfo[$this->currentDocument->physicalStructure[$this->requestData['page']]]['files']; + if (!empty($files[$fileGrpFulltext])) { + return false; } } - return empty($fullTextFile); + return true; } }