function calendar_show_day($d, $m, $y, $courses, $groups, $users) {
- global $CFG, $THEME, $db;
+ global $CFG, $THEME, $USER, $db;
if (!checkdate($m, $d, $y)) {
$now = usergetdate(time());
// New event button
if (empty($USER) || isguest()) {
$text = get_string('dayview', 'calendar').': '.calendar_course_filter_selector($getvars);
-
} else {
$text = '<div style="float: left;">'.get_string('dayview', 'calendar').': '.
calendar_course_filter_selector($getvars).'</div><div style="float: right;">';