fixed missing global $USER causing regressions

This commit is contained in:
Petr Skoda 2010-09-17 07:39:48 +00:00
parent 2fb3434554
commit 5fd9e798dc

View File

@ -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);