From: martin Date: Thu, 5 Sep 2002 11:28:06 +0000 (+0000) Subject: Whoops ... little bug that stopped loginas from working ... need to X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=45f21575aac62aeebe44c1d5300a69f14b948aaa;p=moodle.git Whoops ... little bug that stopped loginas from working ... need to create $USER->site ... --- diff --git a/course/loginas.php b/course/loginas.php index 98baf4fe78..8dff3b70d5 100644 --- a/course/loginas.php +++ b/course/loginas.php @@ -28,6 +28,7 @@ $USER = get_user_info_from_db("id", $user); $USER->loggedin = true; + $USER->site = $CFG->wwwroot; $USER->realuser = $teacher_id; save_session("USER");