$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
<div id="pageControls">
<a id="sbarShow" href="#" onclick="sbarToggle(); return false;"><?php echo _("Calendars") ?></a>
<a id="sbarHide" href="#" onclick="sbarToggle(); return false;"><?php echo _("Calendars") ?></a>
-<?php if ($GLOBALS['session']->exists('kronolith', 'display_cal')): ?>
+<?php if (strlen($GLOBALS['session']->get('kronolith', 'display_cal'))): ?>
<a id="sbarClose" href="<?php echo Horde::selfUrl(true)->add('display_cal', '') ?>"><?php echo $GLOBALS['registry']->getAuth() ? _("Return to my calendars") : _("Return to calendars") ?></a>
<?php endif; ?>
<div id="pageControlsInner">
-<?php if ($GLOBALS['session']->exists('kronolith', 'display_cal')): ?>
+<?php if (strlen($GLOBALS['session']->get('kronolith', 'display_cal'))): ?>
<h4><?php echo ngettext("Showing calendar:", "Showing calendars:", count($calendar_names)) ?></h4>
<?php foreach ($calendar_names as $name): ?>
<h4><?php echo $name ?></h4>