Fix validate_search_word()

This commit is contained in:
Visman 2017-01-09 21:21:04 +07:00
parent 7f3d9ddeca
commit d18d5ab443

View file

@ -160,7 +160,8 @@ function split_words($text, $idx)
//
function validate_search_word($word, $idx)
{
static $container, $stopwords;
global $container;
static $stopwords;
// If the word is a keyword we don't want to index it, but we do want to be allowed to search it
if (is_keyword($word))