From: Michael J. Rubinsky Date: Wed, 2 Sep 2009 15:57:39 +0000 (-0400) Subject: Make sure if we pass a display_cal parameter, that ONLY those calendars are displayed. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=19320d243985503c4f9eb318f1eb7bee55d92392;p=horde.git Make sure if we pass a display_cal parameter, that ONLY those calendars are displayed. --- 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);