mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Bug 6130 session has bad entries causes calendar to fail showing events
Workaround untill Session is fixed properly.
This commit is contained in:
parent
e4aa175a92
commit
0ba66a5de0
@ -1093,6 +1093,10 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU
|
||||
else {
|
||||
$courses = false;
|
||||
}
|
||||
//BUG 6130 clean $courses array as SESSION has bad entries.
|
||||
foreach ($courses as $index => $value) {
|
||||
if (empty($value)) unset($courses[$index]);
|
||||
}
|
||||
|
||||
if($SESSION->cal_show_user || $ignorefilters) {
|
||||
// This doesn't work for arrays yet (maybe someday it will)
|
||||
|
Loading…
x
Reference in New Issue
Block a user