From 719534f2e354e76225f2551d59d5a7e691ae584c Mon Sep 17 00:00:00 2001 From: lkehresman Date: Wed, 31 Jan 2001 04:33:16 +0000 Subject: [PATCH] fixed bug i introduced that always showed attachment box git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1000 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index ffb9c59a..b9d904b3 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -521,7 +521,7 @@ /** Display the ATTACHMENTS: message if there's more than one part **/ $body .= ""; - if (isset($message->entities)) { + if (isset($message->entities[0])) { $body .= formatAttachments ($message, $ent_num, $message->header->mailbox, $id); } } else { @@ -535,7 +535,7 @@ function formatAttachments ($message, $ent_id, $mailbox, $id) { global $where, $what; global $startMessage, $color; - static $ShownHTML; + static $ShownHTML = 0; $body = ""; if ($ShownHTML == 0) -- 2.25.1