Merge pull request #7760 from annando/fix-fatal

Fix fatal error
This commit is contained in:
Philipp 2019-10-21 08:01:56 +02:00 committed by GitHub
commit 5f9edf32d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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'])) {