Skip to content
Snippets Groups Projects
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: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent 5430aa93
Branches
Tags
No related merge requests found
......@@ -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.']);
}
......
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