diff options
author | Chad Little <clittle@users.sourceforge.net> | 2005-10-27 17:41:24 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2005-10-27 17:41:24 +0000 |
commit | 881ed532241f0350e0a377067333a4fb4ef749b0 (patch) | |
tree | 2717a879b8692b75a660135424108a0d0677681a | |
parent | 30801f88bb88dfa0c7d473df6f7518fa2b363ffb (diff) | |
download | phpicalendar-881ed532241f0350e0a377067333a4fb4ef749b0.tar.gz phpicalendar-881ed532241f0350e0a377067333a4fb4ef749b0.tar.bz2 phpicalendar-881ed532241f0350e0a377067333a4fb4ef749b0.zip |
Took acc out of list
-rw-r--r-- | functions/calendar_functions.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/functions/calendar_functions.php b/functions/calendar_functions.php index ebe1634..7a5d88e 100644 --- a/functions/calendar_functions.php +++ b/functions/calendar_functions.php @@ -193,23 +193,23 @@ function display_ical_list($cals, $pick=FALSE) { } else { $return .= "<option value=\"$cal_encoded_tmp\">$cal_displayname_tmp</option>\n"; } - } - else { + } else { $cal_httpPrefix_tmp = str_replace('webcal://', 'http://', $cal_tmp); if ($cal_httpPrefix_tmp == urldecode($cal)) { $return .= "<option value=\"$current_view.php?cal=$cal_encoded_tmp&getdate=$getdate\" selected=\"selected\">$cal_displayname_tmp</option>"; } else { $return .= "<option value=\"$current_view.php?cal=$cal_encoded_tmp&getdate=$getdate\">$cal_displayname_tmp</option>"; } - } + } } // option to open all (non-web) calenders together - if ($cal == $ALL_CALENDARS_COMBINED) { - $return .= "<option value=\"$current_view.php?cal=$ALL_CALENDARS_COMBINED&getdate=$getdate\" selected=\"selected\">$all_cal_comb_lang</option>"; - } else { - $return .= "<option value=\"$current_view.php?cal=$ALL_CALENDARS_COMBINED&getdate=$getdate\">$all_cal_comb_lang</option>"; + if (!$pick) { + if ($cal == $ALL_CALENDARS_COMBINED) { + $return .= "<option value=\"$current_view.php?cal=$ALL_CALENDARS_COMBINED&getdate=$getdate\" selected=\"selected\">$all_cal_comb_lang</option>"; + } else { + $return .= "<option value=\"$current_view.php?cal=$ALL_CALENDARS_COMBINED&getdate=$getdate\">$all_cal_comb_lang</option>"; + } } - return $return; }
\ No newline at end of file |