From d35d50bf94ad2c72ce8a00ef8de994625b092f0c Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 19 Jul 2006 13:45:13 +0000 Subject: [PATCH] fixed course list for guests; merged from MOODLE_16_STABLE --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 7f36e3b5a7..24ae04ae00 100644 --- a/index.php +++ b/index.php @@ -157,7 +157,7 @@ case FRONTPAGECOURSELIST: - if (isloggedin() && !isset($USER->admin) && empty($CFG->disablemycourses)) { + if (isloggedin() and !isadmin() and !isguest() and empty($CFG->disablemycourses)) { print_heading_block(get_string('mycourses')); print_my_moodle(); } else if (!isadmin() or (count_records('course') <= FRONTPAGECOURSELIMIT)) { -- 2.39.5