From b539f8e3596e6048aac9fee534565b91a2f505c3 Mon Sep 17 00:00:00 2001 From: Pontus Horn Date: Mon, 11 Nov 2019 17:40:52 +0100 Subject: [PATCH] Use correct variable name in isLowValueWord --- 40-PicoSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/40-PicoSearch.php b/40-PicoSearch.php index 7aa7976..414daa6 100644 --- a/40-PicoSearch.php +++ b/40-PicoSearch.php @@ -170,7 +170,7 @@ class PicoSearch extends AbstractPicoPlugin } public function isLowValueWord($word) { - return in_array(mb_strtolower($searchTerm), $this->getPluginConfig('low_value_words') ?: []); + return in_array(mb_strtolower($word), $this->getPluginConfig('low_value_words') ?: []); } public function onPageRendering(&$twig, &$twigVariables, &$templateName) {