Skip to content

Commit

Permalink
[BUGFIX] Fix check if fulltext file group exists in `ToolboxControlle…
Browse files Browse the repository at this point in the history
…r` (#1237)

Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored May 31, 2024
1 parent ad3d8de commit a9df0c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/Controller/ToolboxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit a9df0c7

Please sign in to comment.