From a412a2938e0708db0cfd4ba55527e58f6ebdf465 Mon Sep 17 00:00:00 2001 From: Jason Oster Date: Thu, 15 Apr 2010 18:43:53 +0000 Subject: Another additional performance improvement: Call availableCalendars() only once --- month.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'month.php') 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; -- cgit v1.2.3