aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-06-14 23:51:45 -0500
committerJesús <heckyel@hyperbola.info>2020-06-14 23:51:45 -0500
commit99015f5260cdf890c4d4bce0bd2537597300bc4c (patch)
tree2bfa28ce14444a80af96cf953c8e0a53f6ce0b8f
parent228135d19a814985f568c5714da38eac3177fcb3 (diff)
downloadcl-99015f5260cdf890c4d4bce0bd2537597300bc4c.tar.lz
cl-99015f5260cdf890c4d4bce0bd2537597300bc4c.tar.xz
cl-99015f5260cdf890c4d4bce0bd2537597300bc4c.zip
buscar.php: fix keywords
-rw-r--r--content/pages/buscar.php.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/pages/buscar.php.md b/content/pages/buscar.php.md
index f0ae57b..542b02e 100644
--- a/content/pages/buscar.php.md
+++ b/content/pages/buscar.php.md
@@ -54,11 +54,11 @@ if (isset($_GET['q'])) {
}
}
if (! $is_stop_word) {
- $keywords_temp .= $keyword;
+ $keywords_temp .= "{$keyword} ";
}
}
- $keywords = $keywords_temp;
+ $keywords = trim($keywords_temp);
$keywords = explode(' ', $keywords);
$found_results = [];