[-] BO : BugFix : Search index re-build

This commit is contained in:
Francois Gaillard
2011-12-13 09:09:54 +00:00
parent 39b9c7cfa1
commit 133de02a11
+1 -1
View File
@@ -445,7 +445,7 @@ class SearchCore
$total_languages = count(Language::getLanguages(false));
// Products are processed 50 by 50 in order to avoid overloading MySQL
while (($products = Search::getProductsToIndex($total_languages, $id_product, 50)) && $count > 0)
while (($products = Search::getProductsToIndex($total_languages, $id_product, 50)) && (count($products) > 0))
{
// Now each non-indexed product is processed one by one, langage by langage
foreach ($products as $product)