Fix check on existing addressbook

This commit is contained in:
Nathan Gray 2012-09-18 15:07:31 +00:00
parent 67289c346b
commit c1e2403ab7

View File

@ -188,7 +188,7 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi
}
// Check that owner (addressbook) is allowed
if(!in_array($record['owner'], $this->bocontacts->get_addressbooks()))
if(!array_key_exists($record['owner'], $this->bocontacts->get_addressbooks()))
{
$this->errors[$import_csv->get_current_position()] = lang("Unable to import into %1, using %2",
common::grab_owner_name($record['owner']),