// small fix

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17714 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-10-03 10:11:03 +00:00
parent 05d6d1801a
commit 01371b1dcf
@@ -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);