[-] BO : BugFix : Search index re-build
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11160 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-1
@@ -445,7 +445,7 @@ class SearchCore
|
|||||||
$total_languages = count(Language::getLanguages(false));
|
$total_languages = count(Language::getLanguages(false));
|
||||||
|
|
||||||
// Products are processed 50 by 50 in order to avoid overloading MySQL
|
// 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
|
// Now each non-indexed product is processed one by one, langage by langage
|
||||||
foreach ($products as $product)
|
foreach ($products as $product)
|
||||||
|
|||||||
Reference in New Issue
Block a user