From: Georg Ehrke Date: Wed, 9 May 2012 15:36:17 +0000 (+0200) Subject: fix bug in events.php X-Git-Tag: v4.0.0RC~87 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=99db3c01eeb96ef42567ea2b00d7f58ce92eb30c;p=nextcloud-server.git fix bug in events.php --- diff --git a/apps/calendar/ajax/events.php b/apps/calendar/ajax/events.php index e41395a429f..afb4d61d315 100755 --- a/apps/calendar/ajax/events.php +++ b/apps/calendar/ajax/events.php @@ -21,7 +21,7 @@ if(is_numeric($calendar['userid']) && $calendar['userid'] != OCP\User::getUser){ $start = (version_compare(PHP_VERSION, '5.3.0', '>='))?DateTime::createFromFormat('U', $_GET['start']):new DateTime('@' . $_GET['start']); $end = (version_compare(PHP_VERSION, '5.3.0', '>='))?DateTime::createFromFormat('U', $_GET['end']):new DateTime('@' . $_GET['end']); -$events = OC_Calendar_App::getrequestedEvents($id, $start, $end); +$events = OC_Calendar_App::getrequestedEvents($calendar['id'], $start, $end); $output = array(); foreach($events as $event){