From 55d9c93a11ec85ff65fb3fe3946883a260da875c Mon Sep 17 00:00:00 2001 From: defacer Date: Mon, 11 Apr 2005 23:13:41 +0000 Subject: [PATCH] Reading some code carefully... This small check is already done a couple lines above. --- calendar/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/lib.php b/calendar/lib.php index bf548fc92fc..550f31a431c 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -1107,7 +1107,7 @@ function calendar_get_default_courses($ignoreref = false) { } $courses = array(); - if(!empty($USER->id) && isadmin($USER->id)) { + if(isadmin($USER->id)) { if(!empty($CFG->calendar_adminseesall)) { $courses = get_records_sql('SELECT id, 1 FROM '.$CFG->prefix.'course'); return $courses;