Bug 6130 session has bad entries causes calendar to fail showing events

Workaround untill Session is fixed properly.
This commit is contained in:
danmarsden 2006-07-24 00:15:54 +00:00
parent e4aa175a92
commit 0ba66a5de0

View File

@ -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)