From 0bac6be310b6186406ec4dd86b2ca794bfcb5642 Mon Sep 17 00:00:00 2001 From: xia0ta0 Date: Tue, 22 Oct 2013 13:52:26 +0800 Subject: [PATCH] * fix bug#507. --- module/search/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/search/model.php b/module/search/model.php index 3212394535..0fec988160 100644 --- a/module/search/model.php +++ b/module/search/model.php @@ -53,7 +53,7 @@ class searchModel extends model for($i = 1; $i <= $groupItems * 2; $i ++) { /* The and or between two groups. */ - if($i == 1) $where .= '( 1 '; + if($i == 1) $where .= '(( 1 '; if($i == $groupItems + 1) $where .= " ) $groupAndOr ( 1 "; /* Set var names. */ @@ -111,7 +111,7 @@ class searchModel extends model } } - $where .=" )"; + $where .=" ))"; /* Save to session. */ $querySessionName = $this->post->module . 'Query';