Permalink
Browse files

COmbined fix for bug 2199 (course teacher roles) and bug 2200 (course

sortorder)
  • Loading branch information...
1 parent 4b8980f commit d94c70cc7bc68000cda4baec576e491337235cb7 moodler committed Nov 20, 2004
Showing with 3 additions and 3 deletions.
  1. +3 −3 course/lib.php
View
@@ -1214,14 +1214,14 @@ function print_courses($category, $width="100%") {
$categories = get_categories(0); // Parent = 0 ie top-level categories only
if (count($categories) == 1) {
$category = array_shift($categories);
- $courses = get_courses($category->id, NULL, 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary');
+ $courses = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher');
} else {
- $courses = get_courses("all", NULL, 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary');
+ $courses = get_courses("all", 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher');
}
unset($categories);
} else {
$categories = get_categories($category->id); // sub categories
- $courses = get_courses($category->id, NULL, 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary');
+ $courses = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary,c.teacher');
}
if ($courses) {

0 comments on commit d94c70c

Please sign in to comment.