From ec15d3e9f113a2688c2ac59cacd1d0e2693a2b80 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 12 Jan 2004 14:51:29 +0000 Subject: [PATCH] And make sure the group is from this course! --- course/group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5