From: poltawski Date: Wed, 23 Jan 2008 15:40:56 +0000 (+0000) Subject: MDL-13112 - order my courses block alphabetically when only displaying a users X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6255645f47882ee051ae7fe0819a34ec73e852f0;p=moodle.git MDL-13112 - order my courses block alphabetically when only displaying a users individual courses. merged from MOODLE_19_STABLE --- diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index ec20063cb0..34fed95979 100644 --- a/blocks/course_list/block_course_list.php +++ b/blocks/course_list/block_course_list.php @@ -38,7 +38,7 @@ class block_course_list extends block_list { !empty($USER->id) and !(has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) and $adminseesall) and !isguest()) { // Just print My Courses - if ($courses = get_my_courses($USER->id)) { + if ($courses = get_my_courses($USER->id, 'visible DESC, fullname ASC')) { foreach ($courses as $course) { if ($course->id == SITEID) { continue;