fix php notice and displaying of events

This commit is contained in:
Georg Ehrke 2012-05-13 12:02:36 +02:00
parent 9e6221b229
commit f6dc158d51
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ OCP\JSON::checkAppEnabled('calendar');
// Look for the calendar id
$calendar_id = OC_Calendar_App::getCalendar($_GET['calendar_id'], false, false);
if($calendar_id !== false){
if(! is_numeric($calendar['userid']) && $calendar['userid'] != OCP\User::getUser()){
if(! is_numeric($calendar_id['userid']) && $calendar_id['userid'] != OCP\User::getUser()){
OCP\JSON::error();
exit;
}