fix bug in events.php

This commit is contained in:
Georg Ehrke 2012-05-09 17:36:17 +02:00
parent 890c57bad5
commit 99db3c01ee

View file

@ -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){