preserv cats if updateing contacts from import

This commit is contained in:
Cornelius Weiß 2006-10-31 09:26:40 +00:00
parent 25055b8603
commit 3e6921d5b9

View File

@ -456,7 +456,9 @@ class bocontacts extends socontacts
return false;
}
// convert categories
$contact['cat_id'] = is_array($contact['cat_id']) ? implode(',',$contact['cat_id']) : $contact['cat_id'];
if (is_array($contact['cat_id'])) {
$contact['cat_id'] = implode(',',$contact['cat_id']);
}
// last modified
$contact['modifier'] = $this->user;
$contact['modified'] = $this->now_su;