Avoid warning on missing low_value_words config
This commit is contained in:
@@ -169,7 +169,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($searchTerm), $this->getPluginConfig('low_value_words') ?: []);
|
||||
}
|
||||
|
||||
public function onPageRendering(&$twig, &$twigVariables, &$templateName) {
|
||||
|
||||
Reference in New Issue
Block a user