Commit 3c76b9e0 authored by dev-rke's avatar dev-rke Committed by Christian Kuhn
Browse files

[TASK] ClickEnlargeViewhelper PHP 8.0/8.1 compatibility

Fixes 'Undefined array key "crop"' exception in PHP 8.0/8.1
when rendering an image with enabled clickenlarge and defined
cropVariants.

Releases: main, 11.5
Resolves: #96508
Change-Id: I47dfdf4a1a8c2d5f8465e84eb93c06ed4bb292ee
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72965


Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 6de8eea9
......@@ -1014,7 +1014,7 @@ class ContentObjectRenderer implements LoggerAwareInterface
}
foreach ($parameterNames as $parameterName) {
if (isset($conf[$parameterName . '.'])) {
$conf[$parameterName] = $this->stdWrap($conf[$parameterName], $conf[$parameterName . '.'] ?? []);
$conf[$parameterName] = $this->stdWrap($conf[$parameterName] ?? '', $conf[$parameterName . '.'] ?? []);
}
if (isset($conf[$parameterName]) && $conf[$parameterName]) {
$parameters[$parameterName] = $conf[$parameterName];
......
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