diff --git a/src/LegacyModule.php b/src/LegacyModule.php index aae7db50a2..bd1792ca59 100644 --- a/src/LegacyModule.php +++ b/src/LegacyModule.php @@ -92,7 +92,7 @@ class LegacyModule extends BaseModule if (\function_exists($function_name)) { $a = DI::app(); - return $function_name($a); + return $function_name($a) ?? ''; } return '';