diff options
author | Jesús <heckyel@hyperbola.info> | 2020-06-14 23:55:31 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-06-14 23:55:31 -0500 |
commit | 3e745d907adcc91f4deabf2d6344c68cbb1f39b2 (patch) | |
tree | 9dde97b84f17c0ef2e63470891bb435613e442fa | |
parent | 99015f5260cdf890c4d4bce0bd2537597300bc4c (diff) | |
download | cl-3e745d907adcc91f4deabf2d6344c68cbb1f39b2.tar.lz cl-3e745d907adcc91f4deabf2d6344c68cbb1f39b2.tar.xz cl-3e745d907adcc91f4deabf2d6344c68cbb1f39b2.zip |
buscar.php: improve empty variable php
-rw-r--r-- | content/pages/buscar.php.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/pages/buscar.php.md b/content/pages/buscar.php.md index 542b02e..851cb65 100644 --- a/content/pages/buscar.php.md +++ b/content/pages/buscar.php.md @@ -43,7 +43,7 @@ if (isset($_GET['q'])) { $search_str = trim($_REQUEST['q']); $keywords = explode(' ', $search_str); - $keywords_temp = ''; + $keywords_temp = NULL; foreach ($keywords as $keyword) { $is_stop_word = false; foreach ($STOP_WORDS as $stop_word) { @@ -113,7 +113,7 @@ if (isset($_GET['q'])) { $found_results_count_str = $found_results_count . ' resultados'; } } else if ($found_results_count == 0) { - $found_results_count_str = ''; + $found_results_count_str = NULL; printf('<div id="tipue_search_warning">%s</div>', 'No se ha encontrado nada'); } |