mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
add missing backticks around identifier in sql statement
This commit is contained in:
parent
05cf0b83f4
commit
7dfbad5451
|
@ -1042,7 +1042,7 @@ class SeedDMS_Core_DMS {
|
|||
else
|
||||
$orderdir = 'ASC';
|
||||
|
||||
$qs = 'SELECT DISTINCT documentID FROM `tblDocumentRecipients` LEFT JOIN `ttcontentid` ON `ttcontentid`.`maxVersion` = `tblDocumentRecipients`.`version` AND `ttcontentid`.`document` = `tblDocumentRecipients`.`documentID`';
|
||||
$qs = 'SELECT DISTINCT `documentID` FROM `tblDocumentRecipients` LEFT JOIN `ttcontentid` ON `ttcontentid`.`maxVersion` = `tblDocumentRecipients`.`version` AND `ttcontentid`.`document` = `tblDocumentRecipients`.`documentID`';
|
||||
$ra = $this->db->getResultArray($qs);
|
||||
if (is_bool($ra) && !$ra) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user