]> git.mjollnir.org Git - moodle.git/commitdiff
Small improvement. Reducing the list of fields returned
authorstronk7 <stronk7>
Sun, 22 Jul 2007 10:30:28 +0000 (10:30 +0000)
committerstronk7 <stronk7>
Sun, 22 Jul 2007 10:30:28 +0000 (10:30 +0000)
by get_my_courses() in this block.

Merged from MOODLE_18_STABLE

blocks/course_list/block_course_list.php

index cf3fac55a0465d8916a04ec147a6793350fec55e..5f237c3eb0caac8c173675d2087a6237c439be5f 100644 (file)
@@ -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;