Misc changes to improve performance on a brand-new installation

This commit is contained in:
martin
2002-08-01 15:48:27 +00:00
parent 3b9af3dd6f
commit ef58b82265
8 changed files with 26 additions and 13 deletions
+5
View File
@@ -149,6 +149,11 @@
$usernew->timemodified = time();
if (update_record("user", $usernew)) {
if ($usernew->id == $USER->id) { // Reload admin
$USER = get_user_info_from_db("id", $usernew->id);
$USER->loggedin = true;
set_moodle_cookie($USER->username);
}
redirect("index.php", "Changes saved");
} else {
error("Could not update the user record ($user->id)");