From 99db3c01eeb96ef42567ea2b00d7f58ce92eb30c Mon Sep 17 00:00:00 2001
From: Georg Ehrke <dev@georgswebsite.de>
Date: Wed, 9 May 2012 17:36:17 +0200
Subject: [PATCH] fix bug in events.php

---
 apps/calendar/ajax/events.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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