diff options
author | Jason Oster <parasytic@users.sourceforge.net> | 2010-04-16 19:02:36 +0000 |
---|---|---|
committer | Jason Oster <parasytic@users.sourceforge.net> | 2010-04-16 19:02:36 +0000 |
commit | 2ccdb089fcfdcb7ceb66283df426de105d22c8c3 (patch) | |
tree | 6bca161f7c2f34b9d55e281085e6ab72922e4ce7 /functions/init.inc.php | |
parent | 227ff96b2c89e7d013f18d1298507aa815550faf (diff) | |
download | phpicalendar-2ccdb089fcfdcb7ceb66283df426de105d22c8c3.tar.gz phpicalendar-2ccdb089fcfdcb7ceb66283df426de105d22c8c3.tar.bz2 phpicalendar-2ccdb089fcfdcb7ceb66283df426de105d22c8c3.zip |
Fix calendar selection bug assuming "All Calendars Combined"
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index 04069cf..3ac162b 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -48,9 +48,11 @@ if (isset($_GET['cal']) && $_GET['cal'] !='') { $cal_filenames[0] = $phpiCal_config->ALL_CALENDARS_COMBINED; } +$all_calendars_combined = availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED); + //load cal_filenames if $ALL_CALENDARS_COMBINED if ($cal_filenames[0] == $phpiCal_config->ALL_CALENDARS_COMBINED){ - $cal_filenames = availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED); + $cal_filenames = $all_calendars_combined; } // Separate the calendar identifiers into web calendars and local // calendars. |