From: Jan Schneider Date: Mon, 3 May 2010 16:05:36 +0000 (+0200) Subject: Fix error adding the first remote calendar. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e87a7995a33c2f3e6469b3816fcb58c4b9dce654;p=horde.git Fix error adding the first remote calendar. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index f42559dcb..c649a06a6 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -3088,6 +3088,9 @@ KronolithCore = { if (data.tags) { cal.tg = data.tags.split(','); } + if (!Kronolith.conf.calendars[type]) { + Kronolith.conf.calendars[type] = []; + } Kronolith.conf.calendars[type][r.response.calendar] = cal; this.insertCalendarInList(type, r.response.calendar, cal); }