fix calendar
This commit is contained in:
parent
288c5e7581
commit
096f5598b4
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue