From: Michael Date: Sun, 14 Jul 2019 16:04:52 +0000 (+0000) Subject: "defaults" is replaced X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=83729b8c00a7fec7037d82a10e2b8cabc25c4ce7;p=friendica.git "defaults" is replaced --- diff --git a/src/Model/GContact.php b/src/Model/GContact.php index b301c0efbc..6ffa0b2e7d 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -924,7 +924,7 @@ class GContact } // These fields are having different names but the same content - $gcontact['server_url'] = defaults($contact, 'baseurl', ''); // "baseurl" can be null, "server_url" not + $gcontact['server_url'] = $contact['baseurl'] ?? ''; // "baseurl" can be null, "server_url" not $gcontact['nsfw'] = $contact['sensitive']; $gcontact['hide'] = $contact['unsearchable']; $gcontact['archived'] = $contact['archive'];