fix php notice and displaying of events
This commit is contained in:
parent
9e6221b229
commit
f6dc158d51
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue