]> git.mjollnir.org Git - moodle.git/commitdiff
yet another fix for course list for guests; merged from MOODLE_16_STABLE
authorskodak <skodak>
Wed, 19 Jul 2006 13:59:06 +0000 (13:59 +0000)
committerskodak <skodak>
Wed, 19 Jul 2006 13:59:06 +0000 (13:59 +0000)
index.php

index 24ae04ae004a2c231bc000cd17fa151be4c6edc4..c96b94a0e643c8db9b565ac97b0dbfc341af63cf 100644 (file)
--- a/index.php
+++ b/index.php
                 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);