Skip to content

Commit 62376b2

Browse files
authored
Update email type handling to cast type as integer (#4971)
1 parent 5d923fd commit 62376b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/Core/Model/Email/Queue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function send()
192192
$mailer = new Zend_Mail('utf-8');
193193
foreach ($message->getRecipients() as $recipient) {
194194
[$email, $name, $type] = $recipient;
195-
match ($type) {
195+
match ((int) $type) {
196196
self::EMAIL_TYPE_BCC => $mailer->addBcc($email),
197197
default => $mailer->addTo($email, $this->getBase64EncodedString($name)),
198198
};

0 commit comments

Comments
 (0)