]> git.mjollnir.org Git - moodle.git/commitdiff
Added check for $CFG->disablemycourses
authormoodler <moodler>
Fri, 16 Jun 2006 04:28:56 +0000 (04:28 +0000)
committermoodler <moodler>
Fri, 16 Jun 2006 04:28:56 +0000 (04:28 +0000)
blocks/course_list/block_course_list.php

index c8880649ba7bcb66f51260b1d186877bde54a317..dd9434c84f4c0cab3c0b46d9958988b61686a887 100644 (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) {