From 15308e3d177b3ad173ede7e2ab24e785611ed412 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 19 Oct 2010 06:44:28 +0000 Subject: [PATCH] csv import of accounts: fix behavior for new accounts, after fix in rev.32588 --- admin/inc/class.admin_import_users_csv.inc.php | 3 +-- 1 file changed, 1 insertion(+), 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 bc04b197fa..3a4a0e157e 100644 --- a/admin/inc/class.admin_import_users_csv.inc.php +++ b/admin/inc/class.admin_import_users_csv.inc.php @@ -179,9 +179,8 @@ class admin_import_users_csv implements importexport_iface_import_plugin { case 'enable': $_data['account_expires'] = $_action == 'disable' ? 'already' : ''; case 'create' : - $newaccount=true; case 'update' : - $command = new admin_cmd_edit_user(($newaccount?null:$_data['account_lid']), $_data); + $command = new admin_cmd_edit_user(($_action=='create'?null:$_data['account_lid']), $_data); if($this->dry_run) { $this->results[$_action]++; return true;