Merge pull request #198 from somardigital/main

BUG - Pass empty string instead of null when no image exists
This commit is contained in:
Will Rossiter 2024-04-08 16:04:08 +12:00 committed by GitHub
commit 794778ae20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;