// Fix bug in search
This commit is contained in:
@@ -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))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user