diff --git a/classes/ReassuranceActivity.php b/classes/ReassuranceActivity.php index 3dbe844e..d4139632 100644 --- a/classes/ReassuranceActivity.php +++ b/classes/ReassuranceActivity.php @@ -150,9 +150,12 @@ public static function getAllBlock() */ public static function getAllBlockByStatus($id_lang = 1) { + $id_shop = (int) Context::getContext()->shop->id; + $sql = 'SELECT * FROM `' . _DB_PREFIX_ . 'psreassurance` pr LEFT JOIN ' . _DB_PREFIX_ . 'psreassurance_lang prl ON (pr.id_psreassurance = prl.id_psreassurance) WHERE prl.id_lang = "' . (int) $id_lang . '" + AND prl.id_shop = "' . (int) $id_shop . '" AND pr.status = 1 ORDER BY pr.position';