add missing backticks around identifier in sql statement

This commit is contained in:
Uwe Steinmann 2017-02-14 06:29:23 +01:00
parent 0a6034a92e
commit d9aaad16d3

View File

@ -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)