From 176172c850a6836a9804c24b29b8ada13040670b Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 7 Dec 2012 09:44:23 +0100 Subject: Fix PHP warning when replied message contains exactly one Delivered-To header --- program/steps/mail/compose.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program') 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; } -- cgit v1.2.3