fix calendar

This commit is contained in:
Georg Ehrke 2012-06-21 16:23:13 +02:00
parent 288c5e7581
commit 096f5598b4
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ else {
$start = (version_compare(PHP_VERSION, '5.3.0', '>='))?DateTime::createFromFormat('U', $_GET['start']):new DateTime('@' . $_GET['start']); $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']); $end = (version_compare(PHP_VERSION, '5.3.0', '>='))?DateTime::createFromFormat('U', $_GET['end']):new DateTime('@' . $_GET['end']);
$events = OC_Calendar_App::getrequestedEvents($calendar_id, $start, $end); $events = OC_Calendar_App::getrequestedEvents($_GET['calendar_id'], $start, $end);
$output = array(); $output = array();
foreach($events as $event){ foreach($events as $event){
$output = array_merge($output, OC_Calendar_App::generateEventOutput($event, $start, $end)); $output = array_merge($output, OC_Calendar_App::generateEventOutput($event, $start, $end));