Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Small improvement. Reducing the list of fields returned
by get_my_courses().
  • Loading branch information
stronk7 committed Jul 22, 2007
1 parent f352ff4 commit 748d925
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions calendar/export_execute.php
Expand Up @@ -29,7 +29,7 @@

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) {
Expand Down Expand Up @@ -99,7 +99,6 @@
die();
}
}

$whereclause = calendar_sql_where($timestart, $timeend, $include_user ? array($user->id) : false, false, array_keys($courses), false);
if($whereclause === false) {
$events = array();
Expand Down

0 comments on commit 748d925

Please sign in to comment.