From 1bcd64efac15b80e7000745afbb7ddee702642f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=87=91=E5=8B=87?= Date: Thu, 6 Nov 2025 15:49:39 +0800 Subject: [PATCH] * [highgo] Fix bug #66843. --- 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 e62c883af2..2d1c7190c8 100644 --- a/module/search/model.php +++ b/module/search/model.php @@ -203,8 +203,8 @@ class searchModel extends model for($i = 1; $i <= $groupItems * 2; $i ++) { /* The and or between two groups. */ - if($i == 1) $where .= '(( 1 '; - if($i == $groupItems + 1) $where .= " ) $groupAndOr ( 1 "; + if($i == 1) $where .= '(( 1 = 1 '; + if($i == $groupItems + 1) $where .= " ) $groupAndOr ( 1 = 1 "; /* Set var names. */ $fieldName = "field$i";