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

View File

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