mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
remove backticks in sql statement
for some strange reason a select `document` ... UNION select `document` will result in a php array where '`document`' and not 'document' is the key. This makes getTimeline() fail.
This commit is contained in:
parent
f27e330ee3
commit
b9a7f622d1
|
@ -2222,7 +2222,7 @@ class SeedDMS_Core_DMS {
|
|||
$endts = $startts+86400;
|
||||
$timeline = array();
|
||||
|
||||
$queryStr = "SELECT DISTINCT `document` FROM `tblDocumentContent` WHERE `date` > ".$startts." AND `date` < ".$endts." UNION SELECT DISTINCT `document` FROM `tblDocumentFiles` WHERE `date` > ".$startts." AND `date` < ".$endts;
|
||||
$queryStr = "SELECT DISTINCT document FROM `tblDocumentContent` WHERE `date` > ".$startts." AND `date` < ".$endts." UNION SELECT DISTINCT document FROM `tblDocumentFiles` WHERE `date` > ".$startts." AND `date` < ".$endts;
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if ($resArr === false)
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user