]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong variable
authorMichael <heluecht@pirati.ca>
Sat, 13 Jul 2019 07:29:56 +0000 (07:29 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 13 Jul 2019 07:29:56 +0000 (07:29 +0000)
src/Model/Contact.php

index 64afa91e3c11b51bfef7474f77a1d1d9f394ed77..e892c99f2a3b341a5766630958cae35793fb0bc4 100644 (file)
@@ -1465,7 +1465,7 @@ class Contact extends BaseObject
                        $fields = ['addr', 'alias', 'name', 'nick', 'keywords', 'location', 'about', 'baseurl'];
 
                        foreach ($fields as $field) {
-                               $updated[$field] = defaults($data, $field, $contact[$fields]);
+                               $updated[$field] = defaults($data, $field, $contact[$field]);
                        }
 
                        if (($updated['addr'] != $contact['addr']) || (!empty($data['alias']) && ($data['alias'] != $contact['alias']))) {