From: Michael J. Rubinsky Date: Tue, 9 Nov 2010 04:17:00 +0000 (-0500) Subject: Cannot check existence, an empty value here should reset the display_cal flag. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=78dd0bdaac1ca636632ec6098aa99011bcd18222;p=horde.git Cannot check existence, an empty value here should reset the display_cal flag. --- diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index c0d735eec..98befd538 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -965,7 +965,7 @@ class Kronolith $GLOBALS['session']->set('kronolith', 'display_cal', $calendarId); } - if ($GLOBALS['session']->exists('kronolith', 'display_cal')) { + if (strlen($GLOBALS['session']->get('kronolith', 'display_cal'))) { /* Specifying a value for display_cal is always to make sure * that only the specified calendars are shown. Use the * "toggle_calendar" argument to toggle the state of a single diff --git a/kronolith/templates/panel.inc b/kronolith/templates/panel.inc index 2eb848f13..cf9839012 100644 --- a/kronolith/templates/panel.inc +++ b/kronolith/templates/panel.inc @@ -43,11 +43,11 @@ $tagger = Kronolith::getTagger();
-exists('kronolith', 'display_cal')): ?> +get('kronolith', 'display_cal'))): ?> getAuth() ? _("Return to my calendars") : _("Return to calendars") ?>
-exists('kronolith', 'display_cal')): ?> +get('kronolith', 'display_cal'))): ?>