From: moodler Date: Fri, 16 Jun 2006 04:28:56 +0000 (+0000) Subject: Added check for $CFG->disablemycourses X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2de48ff93d4a8e30928284295e38e4a1f7e63e27;p=moodle.git Added check for $CFG->disablemycourses --- diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index c8880649ba..dd9434c84f 100644 --- a/blocks/course_list/block_course_list.php +++ b/blocks/course_list/block_course_list.php @@ -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) {