From b515791e70ed88894305481b2679f1f6b22dd124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Thu, 11 Jun 2020 16:16:18 -0500 Subject: buscar.php: fix empty query --- content/pages/buscar.php.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content') diff --git a/content/pages/buscar.php.md b/content/pages/buscar.php.md index 5eb6643..5443e89 100644 --- a/content/pages/buscar.php.md +++ b/content/pages/buscar.php.md @@ -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); $stop_words_ignored = false; -if (isset($_GET['q'])) { +if (isset($_GET['q']) && !empty($_GET['q'])) { $search_str = trim($_REQUEST['q']); -- cgit v1.2.3