diff --git a/Classes/ViewHelpers/Render/RequestViewHelper.php b/Classes/ViewHelpers/Render/RequestViewHelper.php index 4e29c7c77..bfc29f889 100644 --- a/Classes/ViewHelpers/Render/RequestViewHelper.php +++ b/Classes/ViewHelpers/Render/RequestViewHelper.php @@ -76,7 +76,7 @@ public static function renderStatic( $extensionName = $arguments['extensionName']; $pluginName = $arguments['pluginName']; $vendorName = $arguments['vendorName']; - $arguments = is_array($arguments['arguments']) ? $arguments['arguments'] : null; + $requestArguments = is_array($arguments['arguments']) ? $arguments['arguments'] : []; $configurationManager = static::getConfigurationManager(); $objectManager = static::getObjectManager(); $contentObjectBackup = $configurationManager->getContentObject(); @@ -94,8 +94,8 @@ public static function renderStatic( $request->setControllerName($controller); $request->setPluginName($pluginName); $request->setControllerExtensionName($extensionName); - if ($arguments !== null) { - $request->setArguments($arguments); + if (!empty($requestArguments)) { + $request->setArguments($requestArguments); } $request->setControllerVendorName($vendorName);