From 059ec02aaa1bbd60d2b4a2a56fe99ba36cbc8bcc Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 1 Dec 2008 07:19:40 +0000 Subject: [PATCH] Fix notice. --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index da3b42c3143..53064870fbe 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -2616,7 +2616,7 @@ function create_role($name, $shortname, $description, $legacy='') { * @return success */ function delete_role($roleid) { - global $CFG; + global $CFG, $USER; $success = true; // mdl 10149, check if this is the last active admin role