From 29a8cc034b4e6c5cb6d0eefdb68c1d0010bac9fb Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Fri, 19 Oct 2007 02:27:27 +0000 Subject: [PATCH] MDL-9059, broken sql in calendar_set_filters() --- calendar/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/lib.php b/calendar/lib.php index 1aecd2bcb25..dd914188d13 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -1205,7 +1205,7 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU } } if (!empty($groupids)) { - $sql = "SELECT id, groupid + $sql = "SELECT groupid, groupid FROM {$CFG->prefix}groups_courses_groups WHERE courseid IN (".implode(',', $groupids).')';