From e5797cd4adf79dde9358baf35cadcf6e7baa625e Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 22 Jul 2007 23:02:04 +0000 Subject: [PATCH] Small improvement. Reducing the list of fields returned by get_my_courses(). Merged from MOODLE_18_STABLE --- calendar/export_execute.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/calendar/export_execute.php b/calendar/export_execute.php index 72904e11b16..01c1e2fa6e3 100644 --- a/calendar/export_execute.php +++ b/calendar/export_execute.php @@ -29,7 +29,7 @@ $allowed_time = array('weeknow', 'weeknext', 'monthnow', 'monthnext', 'recentupc if(!empty($what) && !empty($time)) { if(in_array($what, $allowed_what) && in_array($time, $allowed_time)) { - $courses = get_my_courses($user->id); + $courses = get_my_courses($user->id, NULL, 'id, visible, shortname'); $include_user = ($what == 'all'); if ($include_user) { @@ -99,7 +99,6 @@ if(!empty($what) && !empty($time)) { die(); } } - $whereclause = calendar_sql_where($timestart, $timeend, $include_user ? array($user->id) : false, false, array_keys($courses), false); if($whereclause === false) { $events = array();