From ab816da73edb3c0d79a336cf76aea3e333175c43 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 --- 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