From 1531cad596484f4d53db79f963cf3e948a99e4bf Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 26 Nov 2019 19:03:21 +0000 Subject: [PATCH] Fix a notice in gcontact.php --- src/Model/GContact.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/GContact.php b/src/Model/GContact.php index 493d67f024..95f1080f8d 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -627,10 +627,11 @@ class GContact $contact['about'] = $contact['about'] ?? ''; $contact['generation'] = $contact['generation'] ?? 0; - $fields = ['name' => $contact['name'], 'nick' => $contact['nick'], 'addr' => $contact['addr'], 'network' => $contact['network'], + $fields = ['name' => $contact['name'], 'nick' => $contact['nick'] ?? '', 'addr' => $contact['addr'] ?? '', 'network' => $contact['network'], 'url' => $contact['url'], 'nurl' => Strings::normaliseLink($contact['url']), 'photo' => $contact['photo'], 'created' => DateTimeFormat::utcNow(), 'updated' => DateTimeFormat::utcNow(), 'location' => $contact['location'], 'about' => $contact['about'], 'hide' => $contact['hide'], 'generation' => $contact['generation']]; + DBA::insert('gcontact', $fields); $condition = ['nurl' => Strings::normaliseLink($contact['url'])]; -- 2.39.2