From 0f6b1be0e6f0cc6ff97c97190c7da67f5fee0294 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Fri, 15 Jun 2012 00:50:42 +0200 Subject: Agree on argument type. --- apps/calendar/index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/calendar/index.php') diff --git a/apps/calendar/index.php b/apps/calendar/index.php index 05a808a5ae0..a74c879436f 100644 --- a/apps/calendar/index.php +++ b/apps/calendar/index.php @@ -11,11 +11,11 @@ OCP\User::checkLoggedIn(); OCP\App::checkAppEnabled('calendar'); // Create default calendar ... -$calendars = OC_Calendar_Calendar::allCalendars(OCP\USER::getUser(), 1); -if( count($calendars) == 0){ - OC_Calendar_Calendar::addCalendar(OCP\USER::getUser(),'Default calendar'); - $calendars = OC_Calendar_Calendar::allCalendars(OCP\USER::getUser(), 1); -} +$calendars = OC_Calendar_Calendar::allCalendars(OCP\USER::getUser(), true); +// if( count($calendars) == 0){ +// OC_Calendar_Calendar::addCalendar(OCP\USER::getUser(),'Default calendar'); +// $calendars = OC_Calendar_Calendar::allCalendars(OCP\USER::getUser(), true); +// } $eventSources = array(); foreach($calendars as $calendar){ -- cgit v1.2.3