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

This commit is contained in:
nfreear
2007-04-03 10:21:38 +00:00
parent a2e32e1603
commit 381070ab03
2 changed files with 2 additions and 4 deletions
-1
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: