From: Jan Schneider Date: Tue, 28 Dec 2010 12:05:17 +0000 (+0100) Subject: Cast X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2010eb17986064ac5358fbd3a30961fc9ce0a758;p=horde.git Cast --- diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 7f6b22d5a..403f91233 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -141,7 +141,7 @@ class Kronolith 'prefs_url' => (string)Horde::getServiceLink('prefs', 'kronolith')->setRaw(true)->add('ajaxui', 1), 'app_urls' => $app_urls, 'name' => $registry->get('name'), - 'has_tasks' => $has_tasks, + 'has_tasks' => (bool)$has_tasks, 'is_ie6' => ($GLOBALS['browser']->isBrowser('msie') && ($GLOBALS['browser']->getMajor() < 7)), 'login_view' => $prefs->getValue('defaultview') == 'workweek' ? 'week' : $prefs->getValue('defaultview'), 'default_calendar' => 'internal|' . self::getDefaultCalendar(Horde_Perms::EDIT), @@ -1069,7 +1069,7 @@ class Kronolith } } else { $apis = array_unique($GLOBALS['registry']->listAPIs()); - $ext_cals = $GLOBALS['session']->get('kronolith', 'all_external_calendars', Horde_Session::TYPE_ARRAY); + $ext_cals = array(); foreach ($apis as $api) { if (!$GLOBALS['registry']->hasMethod($api . '/listTimeObjects')) {