From 9e9ad58b672b3a83e2dce9bcc1cc7fafa3bdce82 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Tue, 12 Feb 2002 08:48:11 +0000 Subject: [PATCH] Bugfix, remove bcc and cc display when empty git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2423 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 8 ++++---- src/read_body.php | 22 ++++++++++------------ 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index fd546af2..42bfada0 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -548,11 +548,11 @@ function mail_message_listing_beginning echo ''. "". - "". ""; @@ -943,4 +943,4 @@ function handleAsSent($mailbox) { return ($handleAsSent_result); } -?> +?> \ No newline at end of file diff --git a/src/read_body.php b/src/read_body.php index 165b6429..fc08e01c 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -755,7 +755,7 @@ echo "\n" . '' . "\n" . '' . "\n"; /** cc **/ -if (isset($cc_string)) { +if (isset($cc_string) && $cc_string <> '') { echo '' . "'. "' . '' . "\n"; } -if ($default_use_priority) { - if (isset($priority_string)) { - echo '' . - "' . - "" . "\n"; - } +if ($default_use_priority && isset($priority_string) && $priority_string <> '' ) { + echo '' . + "' . + "" . "\n"; } if ($show_xmailer_default) { -- 2.25.1
" . 'Cc:' . @@ -766,7 +766,7 @@ if (isset($cc_string)) { } /** bcc **/ -if (isset($bcc_string)) { +if (isset($bcc_string) && $bcc_string <> '') { echo '
" . 'Bcc:' . @@ -775,16 +775,14 @@ if (isset($bcc_string)) { '
" . - _("Priority") . ': '. - "" . - "$priority_string " . - '
" . + _("Priority") . ': '. + "" . + "$priority_string " . + '