mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
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:
parent
eeccaea183
commit
f6ee5e041c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user