Index: uploaduser.php =================================================================== RCS file: /cvsroot/moodle/moodle/admin/uploaduser.php,v retrieving revision 1.53.2.8 diff -u -r1.53.2.8 uploaduser.php --- uploaduser.php 16 Jan 2008 15:10:20 -0000 1.53.2.8 +++ uploaduser.php 3 Oct 2008 06:27:43 -0000 @@ -249,9 +249,9 @@ } if ($olduser = get_record("user", "username", $username, "mnethostid", $user->mnethostid)) { + $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++;