Skip to content

Commit e526b4e

Browse files
anvasilievmage2pratik
authored andcommitted
Fix confirmation for registered customer
1 parent dbced45 commit e526b4e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

app/code/Magento/Newsletter/Model/Subscriber.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ public function subscribe($email)
417417
self::XML_PATH_CONFIRMATION_FLAG,
418418
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
419419
) == 1 ? true : false;
420-
$isOwnSubscribes = false;
421420

422421
$isSubscribeOwnEmail = $this->_customerSession->isLoggedIn()
423422
&& $this->_customerSession->getCustomerDataObject()->getEmail() == $email;

0 commit comments

Comments
 (0)