fixed course list for guests; merged from MOODLE_16_STABLE

This commit is contained in:
skodak
2006-07-19 13:45:13 +00:00
parent fe2920ad54
commit d35d50bf94
+1 -1
View File
@@ -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)) {