From: Jan Schneider Date: Wed, 4 Nov 2009 14:56:14 +0000 (+0100) Subject: Convert old timeobject preferences. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=99071fb146eea60f047732bac62c47af045d3988;p=horde.git Convert old timeobject preferences. --- diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 6f69873ab..a7cf7e376 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -894,6 +894,12 @@ class Kronolith $calendarId = $api . '/' . $id; if (in_array($calendarId, $_temp)) { $GLOBALS['display_external_calendars'][] = $calendarId; + } else { + /* Convert Kronolith 2 preferences. */ + list($oldid,) = explode('/', $id); + if (in_array($api . '/' . $oldid, $_temp)) { + $GLOBALS['display_external_calendars'][] = $calendarId; + } } } }