From e6b2c43e26883b8034465de316a127c758b4f3c1 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 8 Aug 2011 14:44:53 +0000 Subject: [PATCH] Fix addressbook missing from CSV goes to accounts --- addressbook/inc/class.addressbook_import_contacts_csv.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php index 81c9c12324..7752c0195e 100644 --- a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php @@ -161,8 +161,8 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi importexport_import_csv::convert($record, addressbook_egw_record::$types, 'addressbook', $_lookups); // Set owner, unless it's supposed to come from CSV file - if($_definition->plugin_options['owner_from_csv']) { - if($record['owner'] && !is_numeric($record['owner'])) { + if($_definition->plugin_options['owner_from_csv'] && $record['owner']) { + if(!is_numeric($record['owner'])) { // Automatically handle text owner without explicit translation $new_owner = importexport_helper_functions::account_name2id($record['owner']); if($new_owner == '') {