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