Browse Source

fix php notice and displaying of events

remotes/origin/stable4
Georg Ehrke 14 years ago
parent
commit
f6dc158d51
  1. 2
      apps/calendar/ajax/events.php

2
apps/calendar/ajax/events.php

@ -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…
Cancel
Save