Skip to content

Commit

Permalink
added null coalescing operator to fix deprecation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Callan Stretton authored and jonom committed Nov 23, 2022
1 parent 507632f commit aaa76de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/BetterNavigatorExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function afterCallActionHandler($request, $action, $result)
$html = preg_replace(
'/(<\/body[^>]*>)/i',
$navigatorHTML . '\\1',
$html
$html ?? ''
);
if ($result instanceof DBHTMLText) {
$result->setValue($html);
Expand Down

0 comments on commit aaa76de

Please sign in to comment.