diff --git a/calendar/view.php b/calendar/view.php index eeea9bb9675..399ba26ed89 100644 --- a/calendar/view.php +++ b/calendar/view.php @@ -41,11 +41,12 @@ // Display the calendar page. require_once('../config.php'); - require_once('lib.php'); require_once('../course/lib.php'); require_login(); + require_once('lib.php'); + optional_variable($_GET['view'], 'upcoming'); optional_variable($_GET['course'], 0); optional_variable($_GET['cal_d']);