Fix for bug 2821. I 'm not sure if it makes any difference, but it cannot hurt.

This commit is contained in:
defacer 2005-04-11 22:58:10 +00:00
parent b9135eca2c
commit e2aa618b77

View File

@ -178,11 +178,11 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
$cell = '';
if(CALENDAR_WEEKEND & (1 << ($dayweek % 7))) {
// Weekend. This is true no matter what the exact range is.
$class = 'weekend';
$class = 'weekend day';
}
else {
// Normal working day.
$class = '';
$class = 'day';
}
// Special visual fx if an event is defined
@ -233,11 +233,9 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
else if(isset($typesbyday[$day]['startuser'])) {
$class .= ' event_user';
}
$class .= ' day';
$cell = '<a href="'.$dayhref.'" '.$popup.'>'.$day.'</a>';
}
else {
$class .= ' day';
$cell = $day;
}