* adjust for safe.

This commit is contained in:
wangyidong
2017-02-15 10:05:43 +08:00
parent 8d309ad7cf
commit 5a72fcb503
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1100,7 +1100,7 @@ class bugModel extends model
if(!$this->loadModel('common')->checkField(TABLE_BUG, $type)) return array();
$bugs = $this->dao->select('*')->from(TABLE_BUG)
->where('deleted')->eq(0)
->beginIF($type != 'all')->andWhere("$type")->eq($account)->fi()
->beginIF($type != 'all')->andWhere("`$type`")->eq($account)->fi()
->orderBy($orderBy)
->beginIF($limit > 0)->limit($limit)->fi()
->page($pager)