From: Michael Date: Mon, 21 Oct 2019 05:52:45 +0000 (+0000) Subject: Fix fatal error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=17bb1eaf129aff68c29002779cfb948aa1bdcb3c;p=friendica.git Fix fatal error --- 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'])) {