Skip to content

Commit f0b9a96

Browse files
Update app/code/Magento/Newsletter/Model/Subscriber.php
Co-Authored-By: Ihor Sviziev <[email protected]>
1 parent 0f140b0 commit f0b9a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public function isStatusChanged()
353353
*/
354354
public function isSubscribed()
355355
{
356-
return $this->getId() && $this->getStatus() === self::STATUS_SUBSCRIBED;
356+
return $this->getId() && (int)$this->getStatus() === self::STATUS_SUBSCRIBED;
357357
}
358358

359359
/**

0 commit comments

Comments
 (0)