From: Michael Date: Tue, 26 Nov 2019 19:03:21 +0000 (+0000) Subject: Fix a notice in gcontact.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1531cad596484f4d53db79f963cf3e948a99e4bf;p=friendica.git Fix a notice in gcontact.php --- 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'])];