summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-13 12:02:36 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-13 12:02:36 +0200
commitf6dc158d51217be414f89d0c15526c3903e452ef (patch)
tree67ffdb7cf7feea9d565a3f88c997a02d29064394 /apps
parent9e6221b229410599c28045d1956bb6e84d33cadc (diff)
downloadnextcloud-server-f6dc158d51217be414f89d0c15526c3903e452ef.tar.gz
nextcloud-server-f6dc158d51217be414f89d0c15526c3903e452ef.zip
fix php notice and displaying of events
Diffstat (limited to 'apps')
-rwxr-xr-xapps/calendar/ajax/events.php2
1 files changed, 1 insertions, 1 deletions
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;
}