1
1
Fork 0

Fix wrong variable

This commit is contained in:
Michael 2019-07-13 07:29:56 +00:00
parent 9b8396620b
commit 002963f198

View 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']))) {