Skip to content

Commit

Permalink
fix limit defaults in RecentEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoba committed Apr 10, 2012
1 parent 69e8f44 commit a5337ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ public function RecentEvents($limit = null, $filter = null, $announcement_filter
$announcement_filter
);
$events->sort('StartDate','DESC');
return $events->getRange(0,$limit);
return $events->getRange(0,$l);
}

public static function is_filtered()
Expand Down Expand Up @@ -1004,4 +1004,4 @@ public function CalendarFilterForm()
return $form;

}
}
}

0 comments on commit a5337ee

Please sign in to comment.