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
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74799


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: default avatarJan Helke <jh@f7.de>
Tested-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarJan Helke <jh@f7.de>
Reviewed-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
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