aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2009-05-20 22:43:33 +0000
committerJason Oster <parasytic@users.sourceforge.net>2009-05-20 22:43:33 +0000
commit2a5657581cc895a12f1e5a37abadf7229d086473 (patch)
tree78d1ca9edf9677d985f0d07580b60f46e687cade
parent7b277320615e79d7c2e1edfd080fcef10eab0867 (diff)
downloadphpicalendar-2a5657581cc895a12f1e5a37abadf7229d086473.zip
phpicalendar-2a5657581cc895a12f1e5a37abadf7229d086473.tar.gz
phpicalendar-2a5657581cc895a12f1e5a37abadf7229d086473.tar.bz2
Fix setting time format in preferences page
-rw-r--r--preferences.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/preferences.php b/preferences.php
index 8d590ce..98b9068 100644
--- a/preferences.php
+++ b/preferences.php
@@ -22,14 +22,14 @@ if (isset($_GET['action'])) {
$startdays = array ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
if ($action == 'setcookie') {
- $cookie_language = $_POST['cookie_language'];
+ $cookie_language = urldecode($_POST['cookie_language']);
$cookie_cpath = $_POST['cpath'];
$cookie_calendar = $_POST['cookie_calendar'];
$cookie_view = $_POST['cookie_view'];
$cookie_style = $_POST['cookie_style'];
$cookie_startday = $_POST['cookie_startday'];
$cookie_time = $_POST['cookie_time'];
- $cookie_timeformat = $_POST['cookie_timeformat'];
+ $cookie_timeformat = urldecode($_POST['cookie_timeformat']);
$cookie_endtime = $_POST['cookie_endtime'];
$cookie_timezone = $_POST['cookie_timezone'];
$cookie_unset = @$_POST['unset'];
@@ -128,7 +128,7 @@ $view_select .= ($phpiCal_config->default_view == 'month') ? '<option value="
// select for time
$time_select = '';
-for ($i = 000; $i <= 2400; $i += 100) {
+for ($i = 0; $i <= 2400; $i += 100) {
$s = sprintf("%04d", $i);
$time_select .= '<option value="'.$s.'"';
if ($s == $cookie_time) {
@@ -138,7 +138,7 @@ for ($i = 000; $i <= 2400; $i += 100) {
}
$endtime_select = '';
-for ($i = 000; $i <= 2400; $i += 100) {
+for ($i = 0; $i <= 2400; $i += 100) {
$s = sprintf("%04d", $i);
$endtime_select .= '<option value="'.$s.'"';
if ($s == $cookie_endtime) {

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