mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Merge pull request #198 from somardigital/main
BUG - Pass empty string instead of null when no image exists
This commit is contained in:
commit
794778ae20
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user