diff --git a/src/Service/Emailer.php b/src/Service/Emailer.php index 9e08ffa..2208730 100644 --- a/src/Service/Emailer.php +++ b/src/Service/Emailer.php @@ -1841,6 +1841,11 @@ protected function render(string $sTemplate, $mData): string function ($aMatches) { $sFunction = getFromArray(1, $aMatches); $sArgument = getFromArray(4, $aMatches); + + if ($sArgument === 'null') { + $sArgument = null; + } + return function_exists($sFunction) ? call_user_func($sFunction, $sArgument) : $aMatches[0];