]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix php notice and displaying of events
authorGeorg Ehrke <dev@georgswebsite.de>
Sun, 13 May 2012 10:02:36 +0000 (12:02 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Sun, 13 May 2012 10:02:36 +0000 (12:02 +0200)
apps/calendar/ajax/events.php

index f149e0d400e240d90011167ffc894e137affed68..56fa51aaff2a89b3b943fce122ebafb62a0e27be 100755 (executable)
@@ -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;
        }