diff --git a/Classes/ViewHelpers/MetadataWrapVariableViewHelper.php b/Classes/ViewHelpers/MetadataWrapVariableViewHelper.php index 5f8771e2d..c39e191ea 100644 --- a/Classes/ViewHelpers/MetadataWrapVariableViewHelper.php +++ b/Classes/ViewHelpers/MetadataWrapVariableViewHelper.php @@ -71,9 +71,9 @@ public static function renderStatic( $parser = GeneralUtility::makeInstance(TypoScriptParser::class); $parser->parse($renderChildrenClosure()); $wrap = [ - 'key' => $parser->setup['key.'], - 'value' => $parser->setup['value.'], - 'all' => $parser->setup['all.'], + 'key' => $parser->setup['key.'] ?? '', + 'value' => $parser->setup['value.'] ?? '', + 'all' => $parser->setup['all.'] ?? '', ]; $renderingContext->getVariableProvider()->add($arguments['name'], $wrap); }