From 03008bca7ed0fa8f653540367bab7f203ec50f5a Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 12 Mar 2007 03:05:12 +0000 Subject: [PATCH] fixing a broken sql call to get_my_courses() --- mod/forum/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 7e707e2101e..ba9eb82c4c1 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1240,7 +1240,7 @@ function forum_get_readable_forums($userid, $courseid=0) { /// If no course is specified, then the user can see SITE + his courses. /// And admins can see all courses, so pass the $doanything flag enabled $courses1 = get_records('course', 'id', SITEID); - $courses2 = get_my_courses($userid, '', '*', true); + $courses2 = get_my_courses($userid, 'visible DESC,sortorder ASC', '*', true); $courses = array_merge($courses1, $courses2); } if (!$courses) {