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 @@