From 2df17fc0c02998f525d611ab3d022b82ec7c65eb Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 13 Jul 2019 07:39:53 +0000 Subject: [PATCH] Fix SQL problem with "not null" --- src/Model/GContact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/GContact.php b/src/Model/GContact.php index 0fae0da9d9..b301c0efbc 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'] = $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'];