Be prepared to add new calendars, if we don't have any yet.
authorJan Schneider <jan@horde.org>
Mon, 3 May 2010 15:34:43 +0000 (17:34 +0200)
committerJan Schneider <jan@horde.org>
Mon, 3 May 2010 15:34:43 +0000 (17:34 +0200)
kronolith/lib/Kronolith.php

index 11bcf2c..23e37b9 100644 (file)
@@ -244,6 +244,9 @@ class Kronolith
         $subscriptionTasks = Horde::url($registry->get('webroot', 'horde') . ($GLOBALS['conf']['urls']['pretty'] == 'rewrite' ? '/rpc/nag/' : '/rpc.php/nag/'), true, -1);
 
         // Calendars
+        $code['conf']['calendars']['internal'] =
+            $code['conf']['calendars']['tasklists'] =
+            $code['conf']['calendars']['remote'] = array();
         foreach (array(true, false) as $my) {
             foreach ($GLOBALS['all_calendars'] as $id => $calendar) {
                 if ($calendar->get('owner') != Horde_Auth::getAuth() &&