- fixed parameters of makeTimeStamp()

This commit is contained in:
steinm 2011-04-08 16:11:05 +00:00
parent a2eef3414e
commit 5051bb80dc

View File

@ -183,7 +183,7 @@ class LetoDMS_Core_DMS {
$this->convertFileTypes = array(); $this->convertFileTypes = array();
$this->version = '@package_version@'; $this->version = '@package_version@';
if($this->version[0] == '@') if($this->version[0] == '@')
$this->version = '3.0.0'; $this->version = '3.2.0';
} /* }}} */ } /* }}} */
function getDB() { /* {{{ */ function getDB() { /* {{{ */
@ -472,17 +472,17 @@ class LetoDMS_Core_DMS {
// Is the search restricted to documents created between two specific dates? // Is the search restricted to documents created between two specific dates?
$searchCreateDate = ""; $searchCreateDate = "";
if ($creationstartdate) { if ($creationstartdate) {
$startdate = makeTimeStamp(0, 0, 0, $createstartdate["year"], $createstartdate["month"], $createstartdate["day"]); $startdate = makeTimeStamp(0, 0, 0, $creationstartdate['year'], $creationstartdate["month"], $creationstartdate["day"]);
if ($startdate) { if ($startdate) {
$searchCreateDate .= "`tblDocuments`.`date` >= ".$startdate; $searchCreateDate .= "`tblDocuments`.`date` >= ".$startdate;
} }
} }
if ($creationenddate) { if ($creationenddate) {
$stopdate = makeTimeStamp(23, 59, 59, $createenddate["year"], $createenddate["month"], $createenddate["day"]); $stopdate = makeTimeStamp(23, 59, 59, $creationenddate["year"], $creationenddate["month"], $creationenddate["day"]);
if ($stopdate) { if ($stopdate) {
if($startdate) if($startdate)
$searchCreateDate .= " AND "; $searchCreateDate .= " AND ";
$searchCreateDate = "`tblDocuments`.`date` <= ".$stopdate; $searchCreateDate .= "`tblDocuments`.`date` <= ".$stopdate;
} }
} }