From 2d0476d68a89a02890b3ad1c41151bacbf35c06d Mon Sep 17 00:00:00 2001 From: stekkel Date: Tue, 16 Apr 2002 08:33:25 +0000 Subject: [PATCH] fixed warning git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2731 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index 39839600..6187e6c8 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -801,8 +801,10 @@ function formatAttachments($message, $ent_id, $mailbox, $id) { $header = $message->header; $type0 = strtolower($header->type0); $type1 = strtolower($header->type1); - $name = decodeHeader($header->name); - + $name = ''; + if (isset($header->name)) { + $name = decodeHeader($header->name); + } if ($type0 =='message' && $type1 == 'rfc822') { $filename = decodeHeader($message->header->filename); -- 2.25.1