소스 검색

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);