mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
merged fixed a broken sql call to get_my_courses
This commit is contained in:
parent
76691858b2
commit
096c91afdb
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user