Skip to content

Commit 3756e51

Browse files
committed
refactor: improve emailsubscription DELETE query formatting
1 parent 3264cac commit 3756e51

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
@@ -964,7 +964,7 @@ public function hookActionCustomerAccountAdd($params)
964964
$this->sendVoucher($email, $code);
965965
}
966966

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

970970
return true;

0 commit comments

Comments
 (0)