From: Georg Ehrke Date: Tue, 8 May 2012 06:49:14 +0000 (+0200) Subject: fix for previous commit X-Git-Tag: v4.0.0RC~113 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cdf5d4e2313266f980c0f2d80b47b28886fba3cf;p=nextcloud-server.git fix for previous commit --- 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; }