* fix beginIF for dao.class.php and saveQueryCondition for doc.

This commit is contained in:
wangyidong
2016-03-14 15:59:12 +08:00
parent e843e0004d
commit b5a42dedda
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -152,6 +152,7 @@ class docModel extends model
$docs = $this->dao->select('*')->from(TABLE_DOC)->where($docQuery)->andWhere('deleted')->eq(0)->orderBy($sort)->page($pager)->fetchAll();
}
$this->loadModel('common')->saveQueryCondition($this->dao->get(), 'doc');
if($docs) return $docs;
return array();