aboutsummaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/events.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-09 17:36:17 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-09 17:36:48 +0200
commit99db3c01eeb96ef42567ea2b00d7f58ce92eb30c (patch)
treebeb2fd6a1e9e3a97fdad96f1e637616ee33335c3 /apps/calendar/ajax/events.php
parent890c57bad5fc98ba926c40312d1bc2673ae486e9 (diff)
downloadnextcloud-server-99db3c01eeb96ef42567ea2b00d7f58ce92eb30c.tar.gz
nextcloud-server-99db3c01eeb96ef42567ea2b00d7f58ce92eb30c.zip
fix bug in events.php
Diffstat (limited to 'apps/calendar/ajax/events.php')
-rwxr-xr-xapps/calendar/ajax/events.php2
1 files changed, 1 insertions, 1 deletions
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){