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

View File

@ -214,10 +214,9 @@
$sesskey = !empty($USER->id) ? $USER->sesskey : '';
//DONOTCOMMIT: TODO:
//TODO:
if (debugging()) {
echo '<p>[ <a href="../group/groupui/?id='. $courseid .'">AJAX groups</a>
| <a href="../group/index.php?id='. $courseid .'">New groups</a> - debugging.]</p>';
echo '<p>[ <a href="../group/index.php?id='. $courseid .'">New groups</a> - debugging. ]</p>';
}
/// Print out the complete form

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);
}
}
?>
?>