Skip to content

Commit 51c6d1d

Browse files
committed
MC-4242: Newsletter subscriptions per website
1 parent c16f055 commit 51c6d1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Newsletter/Model/Plugin/CustomerPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function afterSave(
118118
* and customer is already confirmed registration
119119
* than need to subscribe customer
120120
*/
121-
if ($subscriber->getStatus() === Subscriber::STATUS_UNCONFIRMED && empty($result->getConfirmation())) {
121+
if ((int)$subscriber->getStatus() === Subscriber::STATUS_UNCONFIRMED && empty($result->getConfirmation())) {
122122
$needToUpdate = true;
123123
$subscribeStatus = true;
124124
}

0 commit comments

Comments
 (0)