buscar.php: fix empty query
This commit is contained in:
parent
b12d5e3c6e
commit
b515791e70
@ -37,7 +37,7 @@ $STOP_WORDS = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
|
|||||||
$web_content = json_decode(file_get_contents('tipuesearch_content.json'), true);
|
$web_content = json_decode(file_get_contents('tipuesearch_content.json'), true);
|
||||||
$stop_words_ignored = false;
|
$stop_words_ignored = false;
|
||||||
|
|
||||||
if (isset($_GET['q'])) {
|
if (isset($_GET['q']) && !empty($_GET['q'])) {
|
||||||
|
|
||||||
$search_str = trim($_REQUEST['q']);
|
$search_str = trim($_REQUEST['q']);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user