Skip to content

Commit b4ba7f6

Browse files
committed
refactor: improve emailsubscription DELETE query formatting
1 parent 43e2b95 commit b4ba7f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ps_emailsubscription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ public function hookActionCustomerAccountAdd($params)
977977
$this->sendVoucher($email, $code);
978978
}
979979

980-
return (bool) Db::getInstance()->execute('DELETE FROM ' . _DB_PREFIX_ . 'emailsubscription WHERE id_shop=' . (int) $id_shop . ' AND email=\'' . pSQL($email) . "'");
980+
return Db::getInstance()->execute('DELETE FROM `' . _DB_PREFIX_ . 'emailsubscription` WHERE id_shop = ' . (int) $id_shop . 'AND email = "' . pSQL($email) . '"');
981981
}
982982

983983
return true;

0 commit comments

Comments
 (0)