mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
add missing backticks around identifier in sql statement
This commit is contained in:
parent
0a6034a92e
commit
d9aaad16d3
|
@ -2801,7 +2801,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
if (1 || !isset($this->_approvalStatus)) {
|
||||
/* First get a list of all approvals for this document content */
|
||||
$queryStr=
|
||||
"SELECT approveID FROM `tblDocumentApprovers` WHERE `version`='".$this->_version
|
||||
"SELECT `approveID` FROM `tblDocumentApprovers` WHERE `version`='".$this->_version
|
||||
."' AND `documentID` = '". $this->_document->getID() ."' ";
|
||||
$recs = $db->getResultArray($queryStr);
|
||||
if (is_bool($recs) && !$recs)
|
||||
|
|
Loading…
Reference in New Issue
Block a user