From 6573a08f63b3a61292ca0c3fe062bf3e10fb42c8 Mon Sep 17 00:00:00 2001 From: defacer Date: Sat, 5 Feb 2005 03:16:44 +0000 Subject: [PATCH] Changing !$course->category to $course->id == SITEID --- 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 d7735dfcfe..92e4d667b7 100644 --- a/blocks/course_list/block_course_list.php +++ b/blocks/course_list/block_course_list.php @@ -41,7 +41,7 @@ class block_course_list extends block_base { if (isset($USER->id) and !(isadmin() and $adminseesall)) { // Just print My Courses if ($courses = get_my_courses($USER->id)) { foreach ($courses as $course) { - if (!$course->category) { + if ($course->id == SITEID) { continue; } $linkcss = $course->visible ? "" : " class=\"dimmed\" "; -- 2.39.5