]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a bug that must have been there for a while, so that guest icons work again
authormoodler <moodler>
Tue, 12 Sep 2006 14:02:15 +0000 (14:02 +0000)
committermoodler <moodler>
Tue, 12 Sep 2006 14:02:15 +0000 (14:02 +0000)
course/lib.php

index aafcfe715f442fe5ba1bda5bf3ccf54626e10a8f..95bdc7cfa0b5121fe5d9ff9823864c60c25a3e1e 100644 (file)
@@ -1475,14 +1475,14 @@ function print_courses($category, $width="100%", $hidesitecourse = false) {
         $categories = get_categories(0);  // Parent = 0   ie top-level categories only
         if (count($categories) == 1) {
             $category   = array_shift($categories);
-            $courses    = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.category,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher,c.cost,c.currency,c.enrol');
+            $courses    = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.category,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher,c.cost,c.currency,c.enrol,c.guest');
         } else {
-            $courses    = get_courses('all', 'c.sortorder ASC', 'c.id,c.category,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher,c.cost,c.currency,c.enrol');
+            $courses    = get_courses('all', 'c.sortorder ASC', 'c.id,c.category,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher,c.cost,c.currency,c.enrol,c.guest');
         }
         unset($categories);
     } else {
         $categories = get_categories($category->id);  // sub categories
-        $courses    = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.category,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher,c.cost,c.currency,c.enrol');
+        $courses    = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.category,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher,c.cost,c.currency,c.enrol,c.guest');
     }
 
     if ($courses) {
@@ -1503,7 +1503,6 @@ function print_courses($category, $width="100%", $hidesitecourse = false) {
             echo '</div>';
         }
     }
-
 }