]> git.mjollnir.org Git - moodle.git/commitdiff
Changing !$course->category to $course->id == SITEID
authordefacer <defacer>
Sat, 5 Feb 2005 03:16:44 +0000 (03:16 +0000)
committerdefacer <defacer>
Sat, 5 Feb 2005 03:16:44 +0000 (03:16 +0000)
blocks/course_list/block_course_list.php

index d7735dfcfe0892bf4e8afd777c71cc17cf2ab905..92e4d667b7ead04d61d0a8f17cc95b7fb760f9c6 100644 (file)
@@ -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\" ";