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

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