From 17bb1eaf129aff68c29002779cfb948aa1bdcb3c Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 21 Oct 2019 05:52:45 +0000 Subject: [PATCH] Fix fatal error --- src/Model/GContact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) {