From 6255645f47882ee051ae7fe0819a34ec73e852f0 Mon Sep 17 00:00:00 2001 From: poltawski Date: Wed, 23 Jan 2008 15:40:56 +0000 Subject: [PATCH] MDL-13112 - order my courses block alphabetically when only displaying a users individual courses. merged from MOODLE_19_STABLE --- blocks/course_list/block_course_list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5