aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authorjwangen <jwangen>2002-09-30 07:04:38 +0000
committerjwangen <jwangen>2002-09-30 07:04:38 +0000
commit0ca0ddaad22c2e1af253cbe28cf199e756bf097d (patch)
tree5623563d842baf7885688d79c3c8d84e7cf72447 /day.php
parent7b37fdce943db9ffa74293e66558d8ee1f262729 (diff)
downloadphpicalendar-0ca0ddaad22c2e1af253cbe28cf199e756bf097d.tar.gz
phpicalendar-0ca0ddaad22c2e1af253cbe28cf199e756bf097d.tar.bz2
phpicalendar-0ca0ddaad22c2e1af253cbe28cf199e756bf097d.zip
modified it so it doesn't fail
Diffstat (limited to 'day.php')
-rw-r--r--day.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/day.php b/day.php
index 5b04bc0..bdc94a1 100644
--- a/day.php
+++ b/day.php
@@ -1,5 +1,12 @@
<?php
-if (isset($_GET["jumpto_day"])) $getdate = date("Ymd", strtotime($_GET["jumpto_day"]));
+if (isset($_GET["jumpto_day"])) {
+ $jumpto_day_time = strtotime($_GET["jumpto_day"]);
+ if ($jumpto_day_time == -1) {
+ $getdate = date("Ymd");
+ } else {
+ $getdate = date("Ymd", $jumpto_day_time);
+ }
+}
$current_view = "day";
include("./ical_parser.php");

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