Fixes bug MDL-9175 "Groups simpletest, fatal errors", also DONOTCOMMIT.

This commit is contained in:
nfreear
2007-04-03 10:16:51 +00:00
parent d04d6bcbec
commit 008b2b07ab
2 changed files with 3 additions and 5 deletions
+1 -2
View File
@@ -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);
}
}
?>
?>