From b1bd2cf0c1ab78398716d1e7f8c255ca4c9146cc Mon Sep 17 00:00:00 2001 From: defacer Date: Wed, 23 Jun 2004 09:53:23 +0000 Subject: [PATCH] Fix for bug 1527: The New Event button is back in day view. Silly mistake, $USER wasn't taken from the globals and thus it always thought you weren't logged in. --- calendar/view.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/calendar/view.php b/calendar/view.php index a76898ca10..0e475cd207 100644 --- a/calendar/view.php +++ b/calendar/view.php @@ -183,7 +183,7 @@ 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()); @@ -200,7 +200,6 @@ function calendar_show_day($d, $m, $y, $courses, $groups, $users) { // New event button if (empty($USER) || isguest()) { $text = get_string('dayview', 'calendar').': '.calendar_course_filter_selector($getvars); - } else { $text = '
'.get_string('dayview', 'calendar').': '. calendar_course_filter_selector($getvars).'
'; -- 2.39.5