Index: uploaduser.php =================================================================== --- uploaduser.php (修订版 846) +++ uploaduser.php (工作拷贝) @@ -256,9 +256,9 @@ } if ($olduser = get_record("user","username",$username)) { + $user->id = $olduser->id; if ($updateaccounts) { // Record is being updated - $user->id = $olduser->id; if (update_record('user', $user)) { notify("$user->id , $user->username ".get_string('useraccountupdated', 'admin')); $usersupdated++; @@ -273,7 +273,6 @@ //This can be used to obtain a list of userids for existing users notify("$user->id ".get_string('usernotaddedregistered', 'error', $username)); $userserrors++; - continue; } } else { // new user