// Fix bug in search

This commit is contained in:
rMalie
2011-12-21 20:21:58 +00:00
parent 497a21819e
commit 63f20df91b
+3
View File
@@ -486,6 +486,8 @@ class SearchCore
$wordIdsByWord[$product['id_shop']][$product['id_lang']]['_'.$word] = 0; $wordIdsByWord[$product['id_shop']][$product['id_lang']]['_'.$word] = 0;
} }
if ($queryArray2)
{
$existingWords = $db->executeS(' $existingWords = $db->executeS('
SELECT DISTINCT word FROM '._DB_PREFIX_.'search_word SELECT DISTINCT word FROM '._DB_PREFIX_.'search_word
WHERE word IN ('.implode(',', $queryArray2).') WHERE word IN ('.implode(',', $queryArray2).')
@@ -494,6 +496,7 @@ class SearchCore
foreach ($existingWords as $data) foreach ($existingWords as $data)
unset($queryArray[Tools::replaceAccentedChars($data['word'])]); unset($queryArray[Tools::replaceAccentedChars($data['word'])]);
}
if (count($queryArray)) if (count($queryArray))
{ {