From: moodler Date: Thu, 9 Mar 2006 14:51:28 +0000 (+0000) Subject: FIxed bug 4903 and enrol notices X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0cb9ec10caf7e3b584b6d14daf45bc6b2d77e0c6;p=moodle.git FIxed bug 4903 and enrol notices --- diff --git a/course/lib.php b/course/lib.php index a2dc7782a1..de74dbb4fb 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1188,14 +1188,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'); + $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'); } 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'); + $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'); } 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'); + $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'); } if ($courses) {