diff options
author | jwangen <jwangen> | 2002-09-30 07:04:38 +0000 |
---|---|---|
committer | jwangen <jwangen> | 2002-09-30 07:04:38 +0000 |
commit | 0ca0ddaad22c2e1af253cbe28cf199e756bf097d (patch) | |
tree | 5623563d842baf7885688d79c3c8d84e7cf72447 /day.php | |
parent | 7b37fdce943db9ffa74293e66558d8ee1f262729 (diff) | |
download | phpicalendar-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.php | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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"); |