added null coalescing operator to fix deprecation error

This commit is contained in:
Callan Stretton 2022-11-16 15:05:26 +13:00 committed by Jono Menz
parent 507632fd39
commit aaa76deba0
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class BetterNavigatorExtension extends DataExtension
$html = preg_replace(
'/(<\/body[^>]*>)/i',
$navigatorHTML . '\\1',
$html
$html ?? ''
);
if ($result instanceof DBHTMLText) {
$result->setValue($html);