From: moodler Date: Wed, 3 Sep 2003 08:10:02 +0000 (+0000) Subject: Invisible courses get put last on the My Courses listing X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5b6a1dd3ad89f5f4475a871aea6aba7c8d7a6936;p=moodle.git Invisible courses get put last on the My Courses listing --- diff --git a/lib/datalib.php b/lib/datalib.php index b0c2d9b8d3..e40fbf598d 100644 --- a/lib/datalib.php +++ b/lib/datalib.php @@ -1190,7 +1190,7 @@ function get_courses_page($categoryid="all", $sort="c.sortorder ASC", $fields="c } -function get_my_courses($userid, $sort="fullname ASC") { +function get_my_courses($userid, $sort="visible DESC,fullname ASC") { global $CFG;