From 2de48ff93d4a8e30928284295e38e4a1f7e63e27 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 16 Jun 2006 04:28:56 +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 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) { -- 2.39.5