We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62fc9e3 commit 30d5f42Copy full SHA for 30d5f42
app/code/Magento/Newsletter/Model/Subscriber.php
@@ -447,14 +447,12 @@ public function subscribe($email)
447
448
try {
449
$this->save();
450
- if ($sendInformationEmail) {
451
- if ($isConfirmNeed === true
452
- && $isOwnSubscribes === false
453
- ) {
454
- $this->sendConfirmationRequestEmail();
455
- } else {
456
- $this->sendConfirmationSuccessEmail();
457
- }
+ if ($isConfirmNeed === true
+ && $isOwnSubscribes === false
+ ) {
+ $this->sendConfirmationRequestEmail();
+ } else {
+ $this->sendConfirmationSuccessEmail();
458
}
459
return $this->getStatus();
460
} catch (\Exception $e) {
0 commit comments