From 45f21575aac62aeebe44c1d5300a69f14b948aaa Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 5 Sep 2002 11:28:06 +0000 Subject: [PATCH] Whoops ... little bug that stopped loginas from working ... need to create $USER->site ... --- course/loginas.php | 1 + 1 file changed, 1 insertion(+) 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"); -- 2.39.5