Fix fatal error

This commit is contained in:
Michael 2019-10-21 05:52:45 +00:00
parent 49c05036ae
commit 17bb1eaf12
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class GContact
throw new Exception('URL is empty');
}
$gcontact['server_url'] = defaults($gcontact, 'server_url', '');
$gcontact['server_url'] = $gcontact['server_url'] ?? '';
$urlparts = parse_url($gcontact['url']);
if (empty($urlparts['scheme'])) {