]> git.mjollnir.org Git - moodle.git/commitdiff
And make sure the group is from this course!
authormoodler <moodler>
Mon, 12 Jan 2004 14:51:29 +0000 (14:51 +0000)
committermoodler <moodler>
Mon, 12 Jan 2004 14:51:29 +0000 (14:51 +0000)
course/group.php

index f4430bd956ec923915f4d3b88ab282785191ea1b..c22dac170454b407ecf13c260aebfef431541908 100644 (file)
@@ -18,7 +18,7 @@
 
     if ($group) {
         if (isteacheredit($course->id) or $course->groupmode == VISIBLEGROUPS) {
-            if (! $group = get_record("groups", "id", $group)) {
+            if (! $group = get_record("groups", "id", $group, "course", $course->id)) {
                 error('Specified group could not be found!', "groups.php?id=$course->id");
             }
         } else {