mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-15056
Added missing global $DB
This commit is contained in:
parent
6a82584b15
commit
57443b9af4
@ -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 *
|
||||
|
Loading…
x
Reference in New Issue
Block a user