From: moodler Date: Tue, 12 Sep 2006 14:02:15 +0000 (+0000) Subject: Fixed a bug that must have been there for a while, so that guest icons work again X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=32b9a98349a44b00ea57fac8474313704c689c19;p=moodle.git Fixed a bug that must have been there for a while, so that guest icons work again --- diff --git a/course/lib.php b/course/lib.php index aafcfe715f..95bdc7cfa0 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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 ''; } } - }