]> git.mxchange.org Git - friendica.git/commitdiff
Fix SQL problem with "not null"
authorMichael <heluecht@pirati.ca>
Sat, 13 Jul 2019 07:39:53 +0000 (07:39 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 13 Jul 2019 07:39:53 +0000 (07:39 +0000)
src/Model/GContact.php

index 0fae0da9d9bc02fa801e6317dd1481aab39407c3..b301c0efbc4306c96e140a2ef1b68f535433ab60 100644 (file)
@@ -924,7 +924,7 @@ class GContact
                }
 
                // These fields are having different names but the same content
-               $gcontact['server_url'] = $contact['baseurl'];
+               $gcontact['server_url'] = defaults($contact, 'baseurl', ''); // "baseurl" can be null, "server_url" not
                $gcontact['nsfw'] = $contact['sensitive'];
                $gcontact['hide'] = $contact['unsearchable'];
                $gcontact['archived'] = $contact['archive'];