Fixes bug MDL-9175 "Groups simpletest, fatal errors", also DONOTCOMMIT.
This commit is contained in:
+1
-2
@@ -1766,7 +1766,6 @@ function validate_context($contextlevel, $instanceid) {
|
||||
return (boolean)count_records('course', 'id', $instanceid);
|
||||
|
||||
case CONTEXT_GROUP:
|
||||
//return (boolean)count_records('groups_groups', 'id', $instanceid); //TODO:DONOTCOMMIT:
|
||||
return groups_group_exists($instanceid);
|
||||
|
||||
case CONTEXT_MODULE:
|
||||
@@ -3914,4 +3913,4 @@ function role_get_name($role, $context) {
|
||||
return format_string($role->name);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user