diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-12-07 09:44:23 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-12-07 09:44:23 +0100 |
commit | 176172c850a6836a9804c24b29b8ada13040670b (patch) | |
tree | 2892b4ebb0eb0759e2b9ed4c107d21465ad06eae /program | |
parent | 4a63c8f97282d688e2894a2a46a0de97d6788e74 (diff) |
Fix PHP warning when replied message contains exactly one Delivered-To header
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/mail/compose.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 96391c88b..908de950e 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -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; } |