fixed warning
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 16 Apr 2002 08:33:25 +0000 (08:33 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 16 Apr 2002 08:33:25 +0000 (08:33 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2731 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index 3983960..6187e6c 100644 (file)
@@ -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);