Added check for $CFG->disablemycourses

This commit is contained in:
moodler
2006-06-16 04:29:22 +00:00
parent 59b4825741
commit 2a1e7c302c
+1 -1
View File
@@ -34,7 +34,7 @@ class block_course_list extends block_list {
}
}
if (isset($USER->id) and !(isadmin() and $adminseesall)) { // Just print My Courses
if (empty($CFG->disablemycourses) and isset($USER->id) and !(isadmin() and $adminseesall)) { // Just print My Courses
if ($courses = get_my_courses($USER->id)) {
foreach ($courses as $course) {
if ($course->id == SITEID) {