diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php index a1a1a367f73c3c0cd1f72ea741a96c4858eb35f1..62bb6b0a3bea980eb31afe09de4935b75f388c86 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -1197,8 +1197,8 @@ class ContentObjectRenderer implements LoggerAwareInterface } } // Check if key is still containing something, since it might have been changed by next level stdWrap before - if ((isset($conf[$functionName]) || $conf[$functionProperties]) - && ($functionType !== 'boolean' || $conf[$functionName]) + if ((isset($conf[$functionName]) || ($conf[$functionProperties] ?? null)) + && ($functionType !== 'boolean' || ($conf[$functionName] ?? null)) ) { // Get just that part of $conf that is needed for the particular function $singleConf = [ @@ -1215,7 +1215,7 @@ class ContentObjectRenderer implements LoggerAwareInterface // Call the function with the prefix stdWrap_ to make sure nobody can execute functions just by adding their name to the TS Array $functionName = 'stdWrap_' . $functionName; $content = $this->{$functionName}($content, $singleConf); - } elseif ($functionType === 'boolean' && !$conf[$functionName]) { + } elseif ($functionType === 'boolean' && !($conf[$functionName] ?? null)) { $isExecuted[$functionName] = true; $isExecuted[$functionProperties] = true; }