MDL-8096 - advanced edit now mostly works, though still some parts missing; RIP changeme user :-)

This commit is contained in:
skodak
2007-01-25 11:03:33 +00:00
parent 82e3457600
commit e8e0bb2d7b
9 changed files with 71 additions and 36 deletions
+1 -8
View File
@@ -79,14 +79,7 @@
$userform = new user_edit_form(null, compact('user','course','authplugin'));
if ($user->username == 'changeme') {
$changeme = new object();
$changeme->id = $user->id;
$changeme->auth = $user->auth;
$userform->set_data($changeme);
} else {
$userform->set_data($user);
}
$userform->set_data($user);
/// If data submitted, then process and store.
if ($usernew = $userform->get_data()) {