From 2010eb17986064ac5358fbd3a30961fc9ce0a758 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 28 Dec 2010 13:05:17 +0100 Subject: [PATCH] Cast --- kronolith/lib/Kronolith.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')) { -- 2.11.0