From: Andreas Unterkircher Date: Sat, 5 Jan 2008 14:42:53 +0000 (+0100) Subject: issue91, corrected time-range handling X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=915550abc6a1c0e85620162927119b0e69bb7a42;hp=66fc274f7ae4d70998e416917c9cfe2ba62add97 issue91, corrected time-range handling Signed-off-by: Andreas Unterkircher --- 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']);