From 52b3ed56229bd796349f1f983ab78f97558d96fd Mon Sep 17 00:00:00 2001 From: jmunro Date: Tue, 14 May 2002 04:20:41 +0000 Subject: [PATCH] fix for bug #554886 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2819 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 4 ++-- src/read_body.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compose.php b/src/compose.php index c992a040..e2c26708 100644 --- a/src/compose.php +++ b/src/compose.php @@ -557,7 +557,7 @@ function showInputForm ($session) { $from_htmladdr_search, $location_of_buttons, $attachment_dir, $username, $data_dir, $identity, $draft_id, $delete_draft, $mailprio, $default_use_mdn, $mdn_user_support, $compose_new_win, - $saved_draft, $mail_sent, $sig_first; + $saved_draft, $mail_sent, $sig_first, $edit_as_new; $subject = decodeHeader($subject, false); $reply_subj = decodeHeader($reply_subj, false); @@ -581,7 +581,7 @@ function showInputForm ($session) { echo ">\n"; - if (isset($draft_id)) { + if (isset($draft_id) && !$edit_as_new) { echo '\n"; } if (isset($delete_draft)) { diff --git a/src/read_body.php b/src/read_body.php index df311479..a784ab43 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -700,7 +700,7 @@ if (($mailbox == $draft_folder) && ($save_as_draft)) { } if ($mailbox == $sent_folder) { echo '|