Just a small fix that would make this SQL work ... no idea what bug it would fix. It's not MDL-9059

This commit is contained in:
moodler 2007-10-10 08:18:59 +00:00
parent eeccaea183
commit f6ee5e041c

View File

@ -1282,12 +1282,14 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU
}
if (!empty($groupids)) {
$sql = "SELECT id
$sql = "SELECT *
FROM {$CFG->prefix}groups
WHERE courseid IN (".implode(',', $groupids).')';
if ($grouprecords= get_records_sql($sql)) {
$grouparray = array_merge($grouparray, array_keys($grouprecords));
foreach ($grouprecords as $grouprecord) {
$grouparray[] = $grouprecord->id;
}
}
}