aboutsummaryrefslogtreecommitdiffstats
path: root/functions/calendar_functions.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2005-10-27 17:41:24 +0000
committerChad Little <clittle@users.sourceforge.net>2005-10-27 17:41:24 +0000
commit881ed532241f0350e0a377067333a4fb4ef749b0 (patch)
tree2717a879b8692b75a660135424108a0d0677681a /functions/calendar_functions.php
parent30801f88bb88dfa0c7d473df6f7518fa2b363ffb (diff)
downloadphpicalendar-881ed532241f0350e0a377067333a4fb4ef749b0.tar.gz
phpicalendar-881ed532241f0350e0a377067333a4fb4ef749b0.tar.bz2
phpicalendar-881ed532241f0350e0a377067333a4fb4ef749b0.zip
Took acc out of list
Diffstat (limited to 'functions/calendar_functions.php')
-rw-r--r--functions/calendar_functions.php16
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&amp;getdate=$getdate\" selected=\"selected\">$cal_displayname_tmp</option>";
} else {
$return .= "<option value=\"$current_view.php?cal=$cal_encoded_tmp&amp;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&amp;getdate=$getdate\" selected=\"selected\">$all_cal_comb_lang</option>";
- } else {
- $return .= "<option value=\"$current_view.php?cal=$ALL_CALENDARS_COMBINED&amp;getdate=$getdate\">$all_cal_comb_lang</option>";
+ if (!$pick) {
+ if ($cal == $ALL_CALENDARS_COMBINED) {
+ $return .= "<option value=\"$current_view.php?cal=$ALL_CALENDARS_COMBINED&amp;getdate=$getdate\" selected=\"selected\">$all_cal_comb_lang</option>";
+ } else {
+ $return .= "<option value=\"$current_view.php?cal=$ALL_CALENDARS_COMBINED&amp;getdate=$getdate\">$all_cal_comb_lang</option>";
+ }
}
-
return $return;
} \ No newline at end of file

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