From 78dd0bdaac1ca636632ec6098aa99011bcd18222 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 8 Nov 2010 23:17:00 -0500 Subject: [PATCH] Cannot check existence, an empty value here should reset the display_cal flag. --- kronolith/lib/Kronolith.php | 2 +- kronolith/templates/panel.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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'))): ?>

-- 2.11.0