fix for previous commit

This commit is contained in:
Georg Ehrke 2012-05-08 08:49:14 +02:00
parent 0ce1cbdd14
commit cdf5d4e231

View file

@ -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;
}