From 2a1e7c302ceb13f0f6ceb83b7e9eaa963f1e990a Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 16 Jun 2006 04:29:22 +0000 Subject: [PATCH] Added check for $CFG->disablemycourses --- blocks/course_list/block_course_list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index c8880649ba7..dd9434c84f4 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) {