diff options
author | Jesús <heckyel@hyperbola.info> | 2020-06-11 16:16:18 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-06-11 16:16:18 -0500 |
commit | b515791e70ed88894305481b2679f1f6b22dd124 (patch) | |
tree | 1ea82539a56bd529f969bf5c141b947ac2c2e555 /content | |
parent | b12d5e3c6e58daa4f5b1c10ea51f83ea44ec85a0 (diff) | |
download | libretube-b515791e70ed88894305481b2679f1f6b22dd124.tar.lz libretube-b515791e70ed88894305481b2679f1f6b22dd124.tar.xz libretube-b515791e70ed88894305481b2679f1f6b22dd124.zip |
buscar.php: fix empty query
Diffstat (limited to 'content')
-rw-r--r-- | content/pages/buscar.php.md | 2 |
1 files changed, 1 insertions, 1 deletions
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']); |