[*] BO : Rights verification for multi-shop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9198 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -898,7 +898,8 @@ abstract class AdminTabCore
|
||||
if (!Shop::isMultiShopActivated())
|
||||
return ;
|
||||
|
||||
$assos = self::getAssoShop($this->table, $id_object);
|
||||
if(!$assos = self::getAssoShop($this->table, $id_object))
|
||||
return;
|
||||
|
||||
Db::getInstance()->execute('DELETE FROM '._DB_PREFIX_.$this->table.'_'.$assos[1].($id_object ? ' WHERE `'.$this->identifier.'`='.(int)$id_object : ''));
|
||||
foreach ($assos[0] as $asso)
|
||||
@@ -915,7 +916,7 @@ abstract class AdminTabCore
|
||||
else if (isset($groupShopAsso[$table]) && $groupShopAsso[$table]['type'] == 'group_shop')
|
||||
$type = 'group_shop';
|
||||
else
|
||||
return ;
|
||||
return;
|
||||
|
||||
$assos = array();
|
||||
foreach ($_POST as $k => $row)
|
||||
|
||||
Reference in New Issue
Block a user