From eb6b233e311077523e57d02db73e91f7042e9849 Mon Sep 17 00:00:00 2001 From: PhpMadman Date: Fri, 19 Jul 2013 10:33:28 +0200 Subject: [PATCH] [-] BO : If no nb, get default 8, not 10. --- modules/homefeatured/homefeatured.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/homefeatured/homefeatured.php b/modules/homefeatured/homefeatured.php index d3d821913..5d7ec5b57 100644 --- a/modules/homefeatured/homefeatured.php +++ b/modules/homefeatured/homefeatured.php @@ -120,7 +120,7 @@ class HomeFeatured extends Module { $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); $nb = (int)Configuration::get('HOME_FEATURED_NBR'); - $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10)); + $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8)); $this->smarty->assign(array( 'products' => $products, @@ -145,4 +145,4 @@ class HomeFeatured extends Module { $this->_clearCache('homefeatured.tpl'); } -} \ No newline at end of file +}