]> git.mjollnir.org Git - moodle.git/commitdiff
merged fixed a broken sql call to get_my_courses
authortoyomoyo <toyomoyo>
Mon, 12 Mar 2007 03:07:43 +0000 (03:07 +0000)
committertoyomoyo <toyomoyo>
Mon, 12 Mar 2007 03:07:43 +0000 (03:07 +0000)
mod/forum/lib.php

index 8fd14394813faf233ce9b8e81baa9774ff0c1194..314f95aaefc6e437be2fefc0f0c606b327802581 100644 (file)
@@ -1200,7 +1200,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) {