MDL-8096 - edit form session fix

This commit is contained in:
skodak 2007-01-25 18:18:33 +00:00
parent 29c7e08328
commit 4332512e07

View File

@ -92,6 +92,12 @@
//TODO: Save the custom profile fields
// Override old $USER session variable
$usernew = (array)get_record('user', 'id', $newuser->id); // reload from db
foreach ($usernew as $variable => $value) {
$USER->$variable = $value;
}
redirect("$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id");
}