Added $CFG->disablemycourses bug 3220

This commit is contained in:
moodler 2005-05-13 06:17:13 +00:00
parent 8f9727459a
commit 5e07342d79

View File

@ -151,7 +151,7 @@
case FRONTPAGECOURSELIST:
case FRONTPAGECATEGORYNAMES:
if (isset($USER->id) and !isset($USER->admin)) {
if (isloggedin() && !isset($USER->admin) && empty($CFG->disablemycourses)) {
print_heading_block(get_string('mycourses'));
print_my_moodle();
} else {