Commit 6fdb5153 authored by Marc Willmann's avatar Marc Willmann Committed by Stefan Bürk
Browse files

[BUGFIX] Ensure proper value when accessing array

Even if the property 'crop' is not explicit set in the
TypoScript code provide expected values to the stdWrap
method (which expects a string and not NULL).

Resolves: #97720
Releases: main, 11.5
Change-Id: Id8039ea5e379aa9a3ed81499f90160a5af8546f3

Tested-by: core-ci's avatarcore-ci <>
Tested-by: default avatarJan Helke <>
Tested-by: Simon Schaufelberger's avatarSimon Schaufelberger <>
Tested-by: Stefan Bürk's avatarStefan Bürk <>
Reviewed-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: default avatarJan Helke <>
Reviewed-by: Simon Schaufelberger's avatarSimon Schaufelberger <>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <>
parent 47fa45cf
......@@ -3989,7 +3989,7 @@ class ContentObjectRenderer implements LoggerAwareInterface
$cropArea = null;
// Resolve TypoScript configured cropping.
$cropSettings = isset($fileArray['crop.'])
? $this->stdWrap($fileArray['crop'], $fileArray['crop.'])
? $this->stdWrap($fileArray['crop'] ?? '', $fileArray['crop.'])
: ($fileArray['crop'] ?? null);
if (is_string($cropSettings)) {
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