瀏覽代碼

fixed warning

stekkel 23 年之前
父節點
當前提交
2258f9ee38
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      functions/mime.php

+ 4 - 2
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);