From 4cc60dc51fd6c19102d959d55bb6d460cf4687eb Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Tue, 25 Dec 2012 01:18:05 +0000 Subject: [PATCH] * fix a bug: get preAndNexObject error. --- module/common/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index 1fafb2749b..a0bcedcbcb 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -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()