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

This commit is contained in:
Klaus Leithoff 2010-10-18 16:32:45 +00:00
parent 43e1f8b60c
commit e9e2312b06

View File

@ -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;