csv import of accounts: fix behavior for new accounts, after fix in rev.32588

This commit is contained in:
Klaus Leithoff 2010-10-19 06:44:28 +00:00
parent f9b1dee802
commit 15308e3d17

View File

@ -179,9 +179,8 @@ class admin_import_users_csv implements importexport_iface_import_plugin {
case 'enable': case 'enable':
$_data['account_expires'] = $_action == 'disable' ? 'already' : ''; $_data['account_expires'] = $_action == 'disable' ? 'already' : '';
case 'create' : case 'create' :
$newaccount=true;
case 'update' : 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) { if($this->dry_run) {
$this->results[$_action]++; $this->results[$_action]++;
return true; return true;