diff --git a/addressbook/inc/class.addressbook_merge.inc.php b/addressbook/inc/class.addressbook_merge.inc.php index 36e87e182c..3f09de404c 100644 --- a/addressbook/inc/class.addressbook_merge.inc.php +++ b/addressbook/inc/class.addressbook_merge.inc.php @@ -56,8 +56,9 @@ class addressbook_merge // extends bo_merge if (!is_array($contact)) return array(); $replacements = array(); - foreach($contact as $name => $value) + foreach(array_keys($this->contacts->contact_fields) as $name) { + $value = $contact[$name]; switch($name) { case 'created': case 'modified':