From 5fd9e798dca6f577ab082ea5fcbbdcf26989ff88 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 17 Sep 2010 07:39:48 +0000 Subject: [PATCH] fixed missing global $USER causing regressions --- lib/accesslib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/accesslib.php b/lib/accesslib.php index 0a918be4e92..492e24f807a 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -2764,6 +2764,8 @@ function isguestuser($user = NULL) { * @return bool */ function is_guest($context, $user = NULL) { + global $USER; + // first find the course context $coursecontext = get_course_context($context);