[-] MO : #PSTEST-1193 - Fix bad SQL query syntax
This commit is contained in:
1 parent
ab0e15f259
commit
f1c62a2e1c
1 file changed
+2
-2
@@ -3951,9 +3951,9 @@ class BlockLayered extends Module
|
|||||||
LEFT JOIN '._DB_PREFIX_.'category_product cp ON (cp.id_product = p.id_product)
|
LEFT JOIN '._DB_PREFIX_.'category_product cp ON (cp.id_product = p.id_product)
|
||||||
LEFT JOIN '._DB_PREFIX_.'category c ON (c.id_category = cp.id_category)
|
LEFT JOIN '._DB_PREFIX_.'category c ON (c.id_category = cp.id_category)
|
||||||
WHERE c.active = 1'.
|
WHERE c.active = 1'.
|
||||||
(count($categories_ids) ? 'AND cp.id_category IN ('.implode(',', $categories_ids).')' : '').'
|
(count($categories_ids) ? ' AND cp.id_category IN ('.implode(',', $categories_ids).')' : '').'
|
||||||
AND '.$alias.'.active = 1'.
|
AND '.$alias.'.active = 1'.
|
||||||
(count($products_ids) ? 'AND p.id_product IN ('.implode(',', $products_ids).')' : ''));
|
(count($products_ids) ? ' AND p.id_product IN ('.implode(',', $products_ids).')' : ''));
|
||||||
|
|
||||||
$attribute_groups_by_id = array();
|
$attribute_groups_by_id = array();
|
||||||
while ($row = $db->nextRow($attribute_groups))
|
while ($row = $db->nextRow($attribute_groups))
|
||||||
|
|||||||
Reference in new issue
Block a user