* fix a bug: get preAndNexObject error.

This commit is contained in:
zhujinyong
2012-12-25 01:18:05 +00:00
parent f1bb2bb4e1
commit 4cc60dc51f

View File

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