fixed warning

This commit is contained in:
skodak
2007-04-15 21:08:08 +00:00
parent 28701c2fef
commit c6d8a02649
+4 -2
View File
@@ -1110,8 +1110,10 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU
}
//BUG 6130 clean $courses array as SESSION has bad entries.
// [pj] TODO: See if this has to do with my new change in get_default_courses and can be taken out
foreach ($courses as $index => $value) {
if (empty($value)) unset($courses[$index]);
if (is_array($courses)) {
foreach ($courses as $index => $value) {
if (empty($value)) unset($courses[$index]);
}
}
if($SESSION->cal_show_user || $ignorefilters) {