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

[BUGFIX] Fix undefined array key warning in ImageContentObject

Ensure the first argument passed to $this->cImage() is a
string if file is not defined in conf array.

Resolves: #96008
Releases: master
Change-Id: Icf84fd7fad66da4f248e3216ab4b79ac995a69c1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72200


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent 5430aa93
......@@ -39,7 +39,7 @@ class ImageContentObject extends AbstractContentObject
return '';
}
$theValue = $this->cImage($conf['file'], $conf);
$theValue = $this->cImage($conf['file'] ?? '', $conf);
if (isset($conf['stdWrap.'])) {
$theValue = $this->cObj->stdWrap($theValue, $conf['stdWrap.']);
}
......
Supports Markdown
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