diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-15 00:50:42 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-15 00:50:42 +0200 |
commit | 0f6b1be0e6f0cc6ff97c97190c7da67f5fee0294 (patch) | |
tree | a7dc6314385b047c328deb34d5738e476f3388cd /apps/calendar/index.php | |
parent | 1e76a530eadc9568e0630197201648d40b4ad2d4 (diff) | |
download | nextcloud-server-0f6b1be0e6f0cc6ff97c97190c7da67f5fee0294.tar.gz nextcloud-server-0f6b1be0e6f0cc6ff97c97190c7da67f5fee0294.zip |
Agree on argument type.
Diffstat (limited to 'apps/calendar/index.php')
-rw-r--r-- | apps/calendar/index.php | 10 |
1 files changed, 5 insertions, 5 deletions
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){ |