Small improvement. Reducing the list of fields

returned by get_my_courses() in this block.
This commit is contained in:
stronk7
2007-07-22 10:29:01 +00:00
parent 3dc450db90
commit f352ff4b83
+1 -1
View 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;