// Fix #PSCFV-4676

This commit is contained in:
rGaillard
2012-10-03 18:35:36 +00:00
parent 88e4dbe503
commit a39bb8ee26
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -2488,8 +2488,8 @@ class ProductCore extends ObjectModel
if ($context == null)
$context = Context::getContext()->cloneContext();
if ($context->shop->id != (int)$id_shop)
if ($id_shop !== null && $context->shop->id != (int)$id_shop)
$context->shop = new Shop((int)$id_shop);
if (!$use_customer_price)
@@ -2533,6 +2533,7 @@ class ProductCore extends ObjectModel
}
else
$sql->select('0 as id_product_attribute');
$res = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
foreach ($res as $row)