From e15b7304bc7b755f2836b990e84070f26a0b8e69 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 9 Aug 2011 19:14:03 +0000 Subject: [PATCH] Unset empty private, it causes issues trying to find them --- addressbook/inc/class.addressbook_import_contacts_csv.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php index 7752c0195e..d0a576f6b2 100644 --- a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php @@ -202,6 +202,9 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi } if(count($more_categories) > 0) $record['cat_id'] = array_merge(is_array($record['cat_id']) ? $record['cat_id'] : explode(',',$record['cat_id']), $more_categories); + // Private set but missing causes hidden entries + if(array_key_exists('private', $record) && (!isset($record['private']) || $record['private'] == '')) unset($record['private']); + if ( $_definition->plugin_options['conditions'] ) { foreach ( $_definition->plugin_options['conditions'] as $condition ) { $contacts = array();