mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-31 05:57:34 +00:00
use backticks in sql statement
This commit is contained in:
parent
fc44fdf537
commit
c810e99a6b
|
@ -1027,10 +1027,10 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
}
|
||||
$modeStr = "";
|
||||
if ($mode!=M_ANY) {
|
||||
$modeStr = " AND mode".$op.(int)$mode;
|
||||
$modeStr = " AND `mode`".$op.(int)$mode;
|
||||
}
|
||||
$queryStr = "SELECT * FROM `tblACLs` WHERE `targetType` = ".T_DOCUMENT.
|
||||
" AND target = " . $this->_id . $modeStr . " ORDER BY `targetType`";
|
||||
" AND `target` = " . $this->_id . $modeStr . " ORDER BY `targetType`";
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && !$resArr)
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user