BUG - Pass empty string instead of null when no image exists

This commit is contained in:
Sukhwinder Singh 2024-04-08 15:08:56 +12:00
parent 3f75c06a77
commit 05e6963f04
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class GoogleSitemapExtension extends DataExtension
}
}
$objHttp = parse_url($this->owner->AbsoluteLink(), PHP_URL_HOST);
$objHttp = parse_url($this->owner->AbsoluteLink() ?? '', PHP_URL_HOST);
if ($objHttp != $hostHttp) {
$can = false;