Skip to content

Commit

Permalink
Merge pull request #198 from somardigital/main
Browse files Browse the repository at this point in the history
BUG - Pass empty string instead of null when no image exists
  • Loading branch information
wilr authored Apr 8, 2024
2 parents 3f75c06 + 05e6963 commit 794778a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extensions/GoogleSitemapExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function canIncludeInGoogleSitemap()
}
}

$objHttp = parse_url($this->owner->AbsoluteLink(), PHP_URL_HOST);
$objHttp = parse_url($this->owner->AbsoluteLink() ?? '', PHP_URL_HOST);

if ($objHttp != $hostHttp) {
$can = false;
Expand Down

0 comments on commit 794778a

Please sign in to comment.