From: Georg Ehrke Date: Sun, 13 May 2012 10:02:36 +0000 (+0200) Subject: fix php notice and displaying of events X-Git-Tag: v4.0.0RC2~101 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f6dc158d51217be414f89d0c15526c3903e452ef;p=nextcloud-server.git fix php notice and displaying of events --- diff --git a/apps/calendar/ajax/events.php b/apps/calendar/ajax/events.php index f149e0d400e..56fa51aaff2 100755 --- a/apps/calendar/ajax/events.php +++ b/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; }