[-] MO : mailalert : #PSCFV-3763 : Fix error when i delete an mail alert
This commit is contained in:
@@ -75,8 +75,7 @@ class MailAlert extends ObjectModel
|
||||
{
|
||||
$sql = '
|
||||
DELETE FROM `'._DB_PREFIX_.self::$definition['table'].'`
|
||||
WHERE '.(($id_customer > 0) ? '(`customer_email` = \''.pSQL($customer_email).'\'
|
||||
OR `id_customer` = '.(int)$id_customer.')' :
|
||||
WHERE '.(($id_customer > 0) ? '(`customer_email` = \''.pSQL($customer_email).'\' OR `id_customer` = '.(int)$id_customer.')' :
|
||||
'`customer_email` = \''.pSQL($customer_email).'\'').
|
||||
' AND `id_product` = '.(int)$id_product.'
|
||||
AND `id_product_attribute` = '.(int)$id_product_attribute;
|
||||
|
||||
Reference in New Issue
Block a user