[-] FO: Fix module restriction with guest and visitors groups #PSCFV-4004

This commit is contained in:
rGaillard
2012-09-12 08:50:24 +00:00
parent 62fd30a795
commit 0045516aad
2 changed files with 6 additions and 2 deletions

View File

@@ -589,7 +589,7 @@ abstract class ModuleCore
public function disable($forceAll = false)
{
// Disable module for all shops
$sql = 'DELETE FROM `'._DB_PREFIX_.'module_shop` WHERE `id_module` = '.$this->id.' '.((!$forceAll) ? ' AND `id_shop` IN('.implode(', ', Shop::getContextListShopID()).')' : '');
$sql = 'DELETE FROM `'._DB_PREFIX_.'module_shop` WHERE `id_module` = '.(int)$this->id.' '.((!$forceAll) ? ' AND `id_shop` IN('.implode(', ', Shop::getContextListShopID()).')' : '');
Db::getInstance()->execute($sql);
}