Fix PHP warning when replied message contains exactly one Delivered-To header

pull/51/head
Aleksander Machniak 12 years ago
parent 4a63c8f972
commit 176172c850

@ -454,7 +454,7 @@ function rcmail_identity_select($MESSAGE, $identities, $compose_mode)
// Fallback using Delivered-To
if ($from_idx === null && ($delivered_to = $MESSAGE->headers->others['delivered-to'])) {
foreach ($identities as $idx => $ident) {
if (in_array($ident['email_ascii'], $delivered_to)) {
if (in_array($ident['email_ascii'], (array)$delivered_to)) {
$from_idx = $idx;
break;
}

Loading…
Cancel
Save