Skip to content
Snippets Groups Projects
Commit 9b61b397 authored by Thomas Hohn's avatar Thomas Hohn Committed by Christian Kuhn
Browse files

[BUGFIX] Fix undefined array key "pages" in FileContentParser

Fix undefined array key "pages" in FileContentParser by adding
a null coalescing operator.

Resolves: #101450
Releases: main, 12.4, 11.5
Change-Id: Idc3bba5d5ab5516689925fadec86e6fac5978e73
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80544


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent ab90a35e
Branches
Tags
No related merge requests found
......@@ -477,7 +477,7 @@ class FileContentParser
CommandUtility::exec($cmd, $res);
$pdfInfo = $this->splitPdfInfo($res);
unset($res);
if ((int)$pdfInfo['pages']) {
if ((int)($pdfInfo['pages'] ?? 0)) {
[$low, $high] = explode('-', $cPKey);
// Get pdf content:
$tempFileName = GeneralUtility::tempnam('Typo3_indexer');
......
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