diff --git a/src/Model/GContact.php b/src/Model/GContact.php index 0e9acf5670..21225cb23c 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -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'])) {