buscar.php: fix empty query

This commit is contained in:
Jesús 2020-06-11 16:16:18 -05:00
parent b12d5e3c6e
commit b515791e70
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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']);