fix bug in events.php

This commit is contained in:
Georg Ehrke 2012-05-09 17:36:17 +02:00
parent 890c57bad5
commit 99db3c01ee
1 changed files with 1 additions and 1 deletions

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']); $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($id, $start, $end); $events = OC_Calendar_App::getrequestedEvents($calendar['id'], $start, $end);
$output = array(); $output = array();
foreach($events as $event){ foreach($events as $event){