aboutsummaryrefslogtreecommitdiffstats
path: root/month.php
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2010-04-15 18:43:53 +0000
committerJason Oster <parasytic@users.sourceforge.net>2010-04-15 18:43:53 +0000
commita412a2938e0708db0cfd4ba55527e58f6ebdf465 (patch)
treea7544c8d370b23fe16f4734352d36ec2eca59c81 /month.php
parent2983cba296e02cc31fecaf4507f9c2944f13754d (diff)
downloadphpicalendar-a412a2938e0708db0cfd4ba55527e58f6ebdf465.tar.gz
phpicalendar-a412a2938e0708db0cfd4ba55527e58f6ebdf465.tar.bz2
phpicalendar-a412a2938e0708db0cfd4ba55527e58f6ebdf465.zip
Another additional performance improvement: Call availableCalendars() only once
Diffstat (limited to 'month.php')
-rw-r--r--month.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/month.php b/month.php
index 9c2953b..43d22d9 100644
--- a/month.php
+++ b/month.php
@@ -46,13 +46,14 @@ $thisday2 = localizeDate($dateFormat_week_list, $unix_time);
$num_of_events2 = 0;
// select for calendars
-$list_icals = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED));
+$available = availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED);
+$list_icals = display_ical_list($available);
$list_years = list_years();
$list_months = list_months();
$list_weeks = list_weeks();
$list_jumps = list_jumps();
$list_calcolors = list_calcolors();
-$list_icals_pick = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED), TRUE);
+$list_icals_pick = display_ical_list($available, TRUE);
// login/logout
$is_logged_in = ($username != '' && !$invalid_login) ? true : false;

© 2014-2024 Faster IT GmbH | imprint | privacy policy