// small fix

This commit is contained in:
rGaillard
2012-10-03 10:11:03 +00:00
parent 57207712e9
commit 70fc8aed29
@@ -3417,9 +3417,10 @@ class AdminProductsControllerCore extends AdminController
if (Shop::isFeatureActive())
$shops = Shop::getShops();
foreach ($shops as $key => $shop)
if (!$obj->isAssociatedToShop($shop['id_shop']))
unset($shops[$key]);
if ($shops)
foreach ($shops as $key => $shop)
if (!$obj->isAssociatedToShop($shop['id_shop']))
unset($shops[$key]);
$data->assign('shops', $shops);