From 19320d243985503c4f9eb318f1eb7bee55d92392 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 2 Sep 2009 11:57:39 -0400 Subject: [PATCH] Make sure if we pass a display_cal parameter, that ONLY those calendars are displayed. --- kronolith/lib/Kronolith.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 1666cffec..d0089f805 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -697,10 +697,11 @@ class Kronolith * user doesn't have any selected calendars to view then fall * back to an available calendar. */ if (($calendarId = Horde_Util::getFormData('display_cal')) !== null) { + $GLOBALS['display_calendars'] = array(); + $GLOBALS['display_remote_calendars'] = array(); + $GLOBALS['display_external_calendars'] = array(); if (is_array($calendarId)) { $calendars = $calendarId; - $GLOBALS['display_calendars'] = array(); - $GLOBALS['display_remote_calendars'] = array(); foreach ($calendars as $calendarId) { if (strncmp($calendarId, 'remote_', 7) === 0) { $calendarId = substr($calendarId, 7); -- 2.11.0