From: skodak Date: Wed, 19 Jul 2006 13:59:06 +0000 (+0000) Subject: yet another fix for course list for guests; merged from MOODLE_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5337b2b727738315380695b0524febe103adca7b;p=moodle.git yet another fix for course list for guests; merged from MOODLE_16_STABLE --- diff --git a/index.php b/index.php index 24ae04ae00..c96b94a0e6 100644 --- a/index.php +++ b/index.php @@ -160,7 +160,7 @@ 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)) { + } else if ((!isadmin() and !isguest()) or (count_records('course') <= FRONTPAGECOURSELIMIT)) { // admin should not see list of courses when there are too many of them print_heading_block(get_string('availablecourses')); print_courses(0, '100%', true);