mirror of
https://github.com/jonom/silverstripe-betternavigator.git
synced 2024-10-22 14:05:51 +02:00
added null coalescing operator to fix deprecation error
This commit is contained in:
parent
507632fd39
commit
aaa76deba0
@ -49,7 +49,7 @@ class BetterNavigatorExtension extends DataExtension
|
||||
$html = preg_replace(
|
||||
'/(<\/body[^>]*>)/i',
|
||||
$navigatorHTML . '\\1',
|
||||
$html
|
||||
$html ?? ''
|
||||
);
|
||||
if ($result instanceof DBHTMLText) {
|
||||
$result->setValue($html);
|
||||
|
Loading…
Reference in New Issue
Block a user