// Blocklayered: fix problem on the BO
This commit is contained in:
1 parent
c5dd373697
commit
ab816da73e
1 file changed
+2
@@ -3353,6 +3353,8 @@ class BlockLayered extends Module
|
|||||||
if (isset($category_box) && is_array($category_box))
|
if (isset($category_box) && is_array($category_box))
|
||||||
foreach ($category_box as &$value)
|
foreach ($category_box as &$value)
|
||||||
$value = (int)$value;
|
$value = (int)$value;
|
||||||
|
else
|
||||||
|
$category_box = array();
|
||||||
|
|
||||||
$attribute_groups = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
|
$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
|
SELECT ag.id_attribute_group, ag.is_color_group, agl.name, COUNT(DISTINCT(a.id_attribute)) n
|
||||||
|
|||||||
Reference in new issue
Block a user