* fix a bug for preAndNext.

This commit is contained in:
wangyidong
2012-12-26 06:27:20 +00:00
parent 121bbb81dc
commit c32c7acd69

View File

@@ -512,7 +512,7 @@ class commonModel extends model
$orderBy = $this->session->$orderBy;
$orderBy = str_replace('`left`', 'left', $orderBy); // process the `left` to left.
if(empty($_SESSION[$queryCondition]) or $this->session->$typeOnlyCondition)
if(empty($queryCondition) or $this->session->$typeOnlyCondition)
{
$objects = $this->dao->select('*')->from($table)
->beginIF($queryCondition != false)->where($queryCondition)->fi()