From 2ac8da76b65a136cca4be622913f321f0f72d8fb Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 21 Feb 2008 06:10:17 +0000 Subject: [PATCH] User must be logged in (avoids notices) --- calendar/lib.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/calendar/lib.php b/calendar/lib.php index 703d88db9e..73b4a90c9d 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -1367,6 +1367,11 @@ function calendar_edit_event_allowed($event) { global $USER; + // Must be logged in + if (!isloggedin()) { + return false; + } + // can not be using guest account if ($USER->username == "guest") { return false; -- 2.39.5