From: stronk7 Date: Sun, 22 Jul 2007 10:30:28 +0000 (+0000) Subject: Small improvement. Reducing the list of fields returned X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=993b052886a71a0b28175876c716441597af4e76;p=moodle.git Small improvement. Reducing the list of fields returned by get_my_courses() in this block. Merged from MOODLE_18_STABLE --- diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index cf3fac55a0..5f237c3eb0 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, NULL, 'id, visible, shortname, fullname')) { foreach ($courses as $course) { if ($course->id == SITEID) { continue;