From 9c675ceb6bb07226e5e0ff1533bb41050c76e228 Mon Sep 17 00:00:00 2001 From: liyuchun <563917701@qq.com> Date: Wed, 15 Jun 2022 08:12:42 +0000 Subject: [PATCH] * Fix error. --- module/search/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/search/model.php b/module/search/model.php index 0d58ea642e..72e45f6dc9 100644 --- a/module/search/model.php +++ b/module/search/model.php @@ -115,7 +115,7 @@ class searchModel extends model /* Skip empty values. */ if($this->post->$valueName == false) continue; if($this->post->$valueName == 'ZERO') $this->post->$valueName = 0; // ZERO is special, stands to 0. - if(isset($fieldParams->$field) and $fieldParams->$field->control == 'select' and $this->post->$valueName == 'null') $this->post->$valueName = ''; // Null is special, stands to empty if control is select. Fix bug #3279. + if(isset($fieldParams->$field) and $fieldParams->$field->control == 'select' and $this->post->$valueName === 'null') $this->post->$valueName = ''; // Null is special, stands to empty if control is select. Fix bug #3279. $scoreNum += 1;