]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #7759 from nupplaphil/task/mod_receive
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Oct 2019 15:59:13 +0000 (11:59 -0400)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2019 15:59:13 +0000 (11:59 -0400)
Move mod/receive to src/Module/Diaspora/receive

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