From ebd8123efcc7e6d2a771b4e037adb1b47105fdef Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Fri, 16 Mar 2012 10:27:26 +0000 Subject: [PATCH] // Blocklayered: fix problem on the BO git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14215 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/blocklayered/blocklayered.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/blocklayered/blocklayered.php b/modules/blocklayered/blocklayered.php index 3769a8e44..7d385f8ea 100644 --- a/modules/blocklayered/blocklayered.php +++ b/modules/blocklayered/blocklayered.php @@ -3353,6 +3353,8 @@ class BlockLayered extends Module if (isset($category_box) && is_array($category_box)) foreach ($category_box as &$value) $value = (int)$value; + else + $category_box = array(); $attribute_groups = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT ag.id_attribute_group, ag.is_color_group, agl.name, COUNT(DISTINCT(a.id_attribute)) n