From e9e2312b06c5c331afe63d47c262d7f0fd28a6d7 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 18 Oct 2010 16:32:45 +0000 Subject: [PATCH] csv import of accounts: fix behavior for new accounts, after fix in rev.32585 --- admin/inc/class.admin_import_users_csv.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.admin_import_users_csv.inc.php b/admin/inc/class.admin_import_users_csv.inc.php index d2d7631e25..bc04b197fa 100644 --- a/admin/inc/class.admin_import_users_csv.inc.php +++ b/admin/inc/class.admin_import_users_csv.inc.php @@ -178,9 +178,10 @@ class admin_import_users_csv implements importexport_iface_import_plugin { case 'disable': case 'enable': $_data['account_expires'] = $_action == 'disable' ? 'already' : ''; - case 'update' : case 'create' : - $command = new admin_cmd_edit_user($_data['account_lid'], $_data); + $newaccount=true; + case 'update' : + $command = new admin_cmd_edit_user(($newaccount?null:$_data['account_lid']), $_data); if($this->dry_run) { $this->results[$_action]++; return true;