Index: branches/REL1_3/phase3/includes/SearchEngine.php |
— | — | @@ -298,6 +298,9 @@ |
299 | 299 | { |
300 | 300 | global $wgDBminWordLen, $wgLang, $wgDBmysql4; |
301 | 301 | |
| 302 | + if (strlen($this->mUsertext) < 1) |
| 303 | + return MW_SEARCH_BAD_QUERY; |
| 304 | + |
302 | 305 | if( $wgDBmysql4 ) { |
303 | 306 | # Use cleaner boolean search if available |
304 | 307 | return $this->parseQuery4(); |