diff --git a/addressbook/csv_import.php b/addressbook/csv_import.php index 066f4200f1..6990cd5e7d 100644 --- a/addressbook/csv_import.php +++ b/addressbook/csv_import.php @@ -273,6 +273,10 @@ switch($_POST['action']) $log = '
# | \n"; + if (!in_array('private',$addr_fields)) // autocreate public access if not set by user + { + $log .= "\t\tprivate | \n"; + } foreach($addr_fields as $csv_idx => $addr) { // convert $_POST['trans'][$csv_idx] into array of pattern => value // if (!$_POST['debug']) echo "$addr | \n"; } - if (!in_array('private',$addr_fields)) // autocreate public access if not set by user - { - $log .= "\t\tprivate | \n"; - } $start = $_POST['start'] < 1 ? 1 : $_POST['start']; // ignore empty lines, is_null($fields[0]) is returned on empty lines !!!