summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-01-05 15:42:53 +0100
committerAndreas Unterkircher <unki@netshadow.at>2008-01-05 15:42:53 +0100
commit915550abc6a1c0e85620162927119b0e69bb7a42 (patch)
tree3f59b336b8042896c76e83300d18d6816ced6d60
parent66fc274f7ae4d70998e416917c9cfe2ba62add97 (diff)
issue91, corrected time-range handling
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
-rw-r--r--phpfspot.class.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 0553204..a14c4f6 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -1444,12 +1444,14 @@ class PHPFSPOT {
$this->get_tags();
$_SESSION['searchfor'] = $searchfor;
+
if($from != 0)
- $_SESSION['from_date'] = strtotime($from);
+ $_SESSION['from_date'] = strtotime($from ." 00:00:00");
else
unset($_SESSION['from_date']);
+
if($to != 0)
- $_SESSION['to_date'] = strtotime($to);
+ $_SESSION['to_date'] = strtotime($to ." 23:59:59");
else
unset($_SESSION['to_date']);