Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ps_emailsubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ protected function unregister($email, $register_status)
protected function registerUser($email)
{
$sql = 'UPDATE ' . _DB_PREFIX_ . 'customer
SET `newsletter` = 1, newsletter_date_add = NOW(), `ip_registration_newsletter` = \'' . pSQL(Tools::getRemoteAddr()) . '\'
SET `newsletter` = 1, newsletter_date_add = \'' . date('Y-m-d H:i:s') . '\', `ip_registration_newsletter` = \'' . pSQL(Tools::getRemoteAddr()) . '\'
WHERE `email` = \'' . pSQL($email) . '\'
AND id_shop = ' . $this->context->shop->id;

Expand All @@ -640,7 +640,7 @@ protected function registerGuest($email, $active = true)
(' . $this->context->shop->id . ',
' . $this->context->shop->id_shop_group . ',
\'' . pSQL($email) . '\',
NOW(),
\'' . date('Y-m-d H:i:s') . '\',
\'' . pSQL(Tools::getRemoteAddr()) . '\',
(
SELECT c.http_referer
Expand Down
Loading