]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/GContact.php
Rename selectOne to selectFirst
[friendica.git] / src / Model / GContact.php
index b09af6998775c3ceca3a2cee7213e989869ae41f..510afdf164c0ccf9a4bf847044fb40c2537781f4 100644 (file)
@@ -888,7 +888,7 @@ class GContact
                                                'network', 'bd', 'gender',
                                                'keywords', 'alias', 'contact-type',
                                                'url', 'location', 'about');
-                               $old_contact = dba::selectOne('contact', $fields, ['id' => $r[0]["id"]]);
+                               $old_contact = dba::selectFirst('contact', $fields, ['id' => $r[0]["id"]]);
 
                                // Update it with the current values
                                $fields = array('name' => $contact['name'], 'nick' => $contact['nick'],