// Revert search

This commit is contained in:
rMalie
2011-12-09 14:10:37 +00:00
parent a284e2ef8b
commit 55dff6a31e
+1 -3
View File
@@ -445,9 +445,7 @@ class SearchCore
$total_languages = count(Language::getLanguages(false));
// Products are processed 50 by 50 in order to avoid overloading MySQL
$count = count($products);
$products = Search::getProductsToIndex($total_languages, $id_product, 50);
while ($products && $count > 0)
while (($products = Search::getProductsToIndex($total_languages, $id_product, 50)) && $count > 0)
{
// Now each non-indexed product is processed one by one, langage by langage
foreach ($products as $product)