From c1e2403ab724e93de67b921fab3cfbdb3f1365b4 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 18 Sep 2012 15:07:31 +0000 Subject: [PATCH] Fix check on existing addressbook --- addressbook/inc/class.addressbook_import_contacts_csv.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php index f6308cf5a2..2cefc616e2 100644 --- a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php @@ -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']),