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

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Benni Mack's avatarBenni Mack <>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
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