From cb0d44c59f395e0d5cc3a821df4288f7bd4464d9 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Tue, 7 Dec 2004 08:33:52 +0000 Subject: [PATCH] fixed warning when realuser is not set. --- course/loginas.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/loginas.php b/course/loginas.php index f9d967750c..5f01d9a032 100644 --- a/course/loginas.php +++ b/course/loginas.php @@ -17,7 +17,7 @@ require_login($course->id); } - if ($USER->realuser) { /// Reset user back to their real self + if (isset($USER->realuser)) { /// Reset user back to their real self $USER = get_user_info_from_db("id", $USER->realuser); $USER->loggedin = true; $USER->site = $CFG->wwwroot; -- 2.39.5