From a5337ee0472f473e072846694467666b93cc0c2b Mon Sep 17 00:00:00 2001 From: ivo Date: Tue, 10 Apr 2012 15:13:28 +0200 Subject: [PATCH] fix limit defaults in RecentEvents --- code/Calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Calendar.php b/code/Calendar.php index 7b12e11..b51d12e 100755 --- a/code/Calendar.php +++ b/code/Calendar.php @@ -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() @@ -1004,4 +1004,4 @@ public function CalendarFilterForm() return $form; } -} \ No newline at end of file +}