]> git.mjollnir.org Git - moodle.git/commitdiff
Small improvement. Reducing the list of fields returned
authorstronk7 <stronk7>
Sun, 22 Jul 2007 23:02:04 +0000 (23:02 +0000)
committerstronk7 <stronk7>
Sun, 22 Jul 2007 23:02:04 +0000 (23:02 +0000)
by get_my_courses().

Merged from MOODLE_18_STABLE

calendar/export_execute.php

index 72904e11b16bd0cbdfbec4413ee4d9b3536f3ebf..01c1e2fa6e34fc6b2cf73c14df0663a91cd83599 100644 (file)
@@ -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();