From: moodler Date: Mon, 12 Jan 2004 14:51:29 +0000 (+0000) Subject: And make sure the group is from this course! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ec15d3e9f113a2688c2ac59cacd1d0e2693a2b80;p=moodle.git And make sure the group is from this course! --- diff --git a/course/group.php b/course/group.php index f4430bd956..c22dac1704 100644 --- a/course/group.php +++ b/course/group.php @@ -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 {