From fe868193d60150226a596984dac9eaa337b1e6ff Mon Sep 17 00:00:00 2001 From: jangliss Date: Mon, 12 Apr 2004 04:59:18 +0000 Subject: [PATCH] Fix for resume on draft breaking From: being a different identity. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7078 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/compose.php b/src/compose.php index 049b40a0..7f1d6809 100644 --- a/src/compose.php +++ b/src/compose.php @@ -663,6 +663,11 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se $identity = ''; $from_o = $orig_header->from; + if (is_array($from_o)) { + if (isset($from_o[0])) { + $from_o = $from_o[0]; + } + } if (is_object($from_o)) { $orig_from = $from_o->getAddress(); } else { @@ -684,8 +689,6 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se if ($identity_match) { $identity = $identity_match; } - // we need identiy here fore draft case #845290 - // echo $identity."leer"; } switch ($action) { -- 2.25.1