From: skodak Date: Wed, 19 Jul 2006 13:45:13 +0000 (+0000) Subject: fixed course list for guests; merged from MOODLE_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d35d50bf94ad2c72ce8a00ef8de994625b092f0c;p=moodle.git fixed course list for guests; merged from MOODLE_16_STABLE --- 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)) {