]> git.mxchange.org Git - friendica.git/commitdiff
Fix fatal error
authorMichael <heluecht@pirati.ca>
Mon, 21 Oct 2019 05:52:45 +0000 (05:52 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 21 Oct 2019 05:52:45 +0000 (05:52 +0000)
src/Model/GContact.php

index 0e9acf5670604bfd3c35809099d28cd79c49fc26..21225cb23c0addcb7f3c8b9d89e4875e4529ab57 100644 (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'])) {