We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43e2b95 commit b4ba7f6Copy full SHA for b4ba7f6
1 file changed
ps_emailsubscription.php
@@ -977,7 +977,7 @@ public function hookActionCustomerAccountAdd($params)
977
$this->sendVoucher($email, $code);
978
}
979
980
- return (bool) Db::getInstance()->execute('DELETE FROM ' . _DB_PREFIX_ . 'emailsubscription WHERE id_shop=' . (int) $id_shop . ' AND email=\'' . pSQL($email) . "'");
+ return Db::getInstance()->execute('DELETE FROM `' . _DB_PREFIX_ . 'emailsubscription` WHERE id_shop = ' . (int) $id_shop . 'AND email = "' . pSQL($email) . '"');
981
982
983
return true;
0 commit comments