From cdf5d4e2313266f980c0f2d80b47b28886fba3cf Mon Sep 17 00:00:00 2001
From: Georg Ehrke <dev@georgswebsite.de>
Date: Tue, 8 May 2012 08:49:14 +0200
Subject: [PATCH] fix for previous commit

---
 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 c3807fe47ed..e41395a429f 100755
--- a/apps/calendar/ajax/events.php
+++ b/apps/calendar/ajax/events.php
@@ -13,7 +13,7 @@ OCP\JSON::checkLoggedIn();
 OCP\JSON::checkAppEnabled('calendar');
 
 $calendar = OC_Calendar_App::getCalendar($_GET['calendar_id'], false, false);
-if($calendar['userid'] != OCP\User::getUser){
+if(is_numeric($calendar['userid']) && $calendar['userid'] != OCP\User::getUser){
 	OCP\JSON::error();
 	exit;
 }
-- 
GitLab