From 198a12b6289f0af0f93f6c8089c71926022c33f0 Mon Sep 17 00:00:00 2001 From: Thibault GUILLAUME Date: Wed, 28 Oct 2015 12:40:13 +0100 Subject: [PATCH] divers --- override/modules/blockbestsellers/blockbestsellers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/override/modules/blockbestsellers/blockbestsellers.php b/override/modules/blockbestsellers/blockbestsellers.php index 490a54e0..e75032ad 100644 --- a/override/modules/blockbestsellers/blockbestsellers.php +++ b/override/modules/blockbestsellers/blockbestsellers.php @@ -34,7 +34,7 @@ class BlockBestSellersOverride extends BlockBestSellers if (Configuration::get('PS_CATALOG_MODE')) return false; - if (!($result = ProductSale::getProductHome((int)$params['cookie']->id_lang, 0, (int)Configuration::get('PS_BLOCK_BESTSELLERS_TO_DISPLAY')))) + if (!($result = ProductSale::getProductHome((int)$params['cookie']->id_lang, 0, 6))) return (Configuration::get('PS_BLOCK_BESTSELLERS_DISPLAY') ? array() : false); $currency = new Currency($params['cookie']->id_currency);