From e90fea2f4263680042375a109c56217553dcaa37 Mon Sep 17 00:00:00 2001 From: tianya Date: Sat, 29 Mar 2025 09:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/system/archive/searchview.class.php | 5 ++++- src/theme/dedebiz/widget_search.htm | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/system/archive/searchview.class.php b/src/system/archive/searchview.class.php index 18d9c204..17e4b55a 100755 --- a/src/system/archive/searchview.class.php +++ b/src/system/archive/searchview.class.php @@ -207,6 +207,9 @@ class SearchView */ function GetKeywordSql() { + if ($this->Keywords == '') { + return '1=2'; + } $ks = explode(' ', $this->Keywords); $kwsql = ''; $kwsqls = array(); @@ -354,7 +357,7 @@ class SearchView $this->AddTable = "#@__archives"; } $cquery = "SELECT * FROM `{$this->AddTable}` arc WHERE ".$this->AddSql; - //var_dump($cquery); + // var_dump($cquery); $hascode = md5($cquery); $row = $this->dsql->GetOne("SELECT * FROM `#@__arccache` WHERE `md5hash`='".$hascode."' "); $uptime = time(); diff --git a/src/theme/dedebiz/widget_search.htm b/src/theme/dedebiz/widget_search.htm index 36a6c14a..83ef425b 100644 --- a/src/theme/dedebiz/widget_search.htm +++ b/src/theme/dedebiz/widget_search.htm @@ -2,7 +2,10 @@