Fix notice.

This commit is contained in:
tjhunt
2008-12-01 07:19:40 +00:00
parent c353917324
commit 059ec02aaa
+1 -1
View File
@@ -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