From 448d604cb499feb4634847a3912a1fb48c3755fb Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 8 Nov 2010 05:27:04 +0000 Subject: [PATCH] blocks MDL-25093 fixed an error that meant that the course limit wasnt being applied in the course overview --- blocks/course_overview/block_course_overview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/course_overview/block_course_overview.php b/blocks/course_overview/block_course_overview.php index a183ee20a6e..8ece30c1957 100644 --- a/blocks/course_overview/block_course_overview.php +++ b/blocks/course_overview/block_course_overview.php @@ -64,7 +64,7 @@ class block_course_overview extends block_base { $courses_limit = $courses_limit + 1; } - $courses = enrol_get_my_courses(NULL, 'visible DESC,sortorder ASC', '*', $courses_limit); + $courses = enrol_get_my_courses('id, shortname', 'visible DESC,sortorder ASC', $courses_limit); $site = get_site(); $course = $site; //just in case we need the old global $course hack