// Small fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17372 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -1642,6 +1642,9 @@ class ProductCore extends ObjectModel
|
|||||||
WHERE pa.`id_product` = '.(int)$this->id.'
|
WHERE pa.`id_product` = '.(int)$this->id.'
|
||||||
GROUP BY pa.`id_product_attribute`');
|
GROUP BY pa.`id_product_attribute`');
|
||||||
|
|
||||||
|
if (!$combinations)
|
||||||
|
return false;
|
||||||
|
|
||||||
$product_attributes = array();
|
$product_attributes = array();
|
||||||
foreach ($combinations as $combination)
|
foreach ($combinations as $combination)
|
||||||
$product_attributes[] = (int)$combination['id_product_attribute'];
|
$product_attributes[] = (int)$combination['id_product_attribute'];
|
||||||
|
|||||||
Reference in New Issue
Block a user