Commit 3d1c9e25 authored by Florian Rival's avatar Florian Rival Committed by Oliver Bartsch
Browse files

[BUGFIX] Fix undefined key warning in ContentObjectRenderer

Resolves: #95993
Releases: master
Change-Id: I8eb6e779ae1d0f02bf8ef0fe3fb5dd02b751cb47
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72190


Tested-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent 3f02811b
Pipeline #19386 passed with stages
in 40 minutes and 36 seconds
......@@ -4605,10 +4605,10 @@ class ContentObjectRenderer implements LoggerAwareInterface
{
$rootLine = is_array($altRootLine) ? $altRootLine : $this->getTypoScriptFrontendController()->tmpl->rootLine;
if (!$slideBack) {
return $rootLine[$key][$field];
return $rootLine[$key][$field] ?? '';
}
for ($a = $key; $a >= 0; $a--) {
$val = $rootLine[$a][$field];
$val = $rootLine[$a][$field] ?? '';
if ($val) {
return $val;
}
......
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