"defaults" is replaced

This commit is contained in:
Michael 2019-07-14 16:04:52 +00:00
parent 9ba3ee13a8
commit 83729b8c00

View file

@ -924,7 +924,7 @@ class GContact
} }
// These fields are having different names but the same content // 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['nsfw'] = $contact['sensitive'];
$gcontact['hide'] = $contact['unsearchable']; $gcontact['hide'] = $contact['unsearchable'];
$gcontact['archived'] = $contact['archive']; $gcontact['archived'] = $contact['archive'];