]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15056
authorthepurpleblob <thepurpleblob>
Fri, 30 May 2008 11:06:49 +0000 (11:06 +0000)
committerthepurpleblob <thepurpleblob>
Fri, 30 May 2008 11:06:49 +0000 (11:06 +0000)
Added missing global $DB

lib/accesslib.php

index 6b2297635213eca4b89290268c1e08b0c8cdb010..fa3753025cdbdb1363ec23e52ebbf087b2750534 100755 (executable)
@@ -3774,7 +3774,7 @@ function get_roles_used_in_context($context, $view = false) {
  * @return string
  */
 function get_user_roles_in_context($userid, $context, $view=true){
-    global $CFG, $USER;
+    global $CFG, $DB,$USER;
 
     $rolestring = '';
     $sql = "SELECT *