浏览代码

minor fix to in displaying attachments

stekkel 23 年之前
父节点
当前提交
3d8ffc9c06
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      class/mime.class.php

+ 3 - 2
class/mime.class.php

@@ -1,7 +1,7 @@
 <?php
 
 /**
- * mime.class.php
+ * mime.class
  *
  * Copyright (c) 2002 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
@@ -839,7 +839,8 @@ class message {
 	       }
 	    }
     	    if (!$exclude) {
-	       if ($entity->type0 == 'multipart' && !$entity->type1 == 'related') {
+	       if ($entity->type0 == 'multipart' && 
+	           $entity->type1 != 'related') {
 	          $result = $entity->getAttachments($exclude_id, $result);
 	       } else if ($entity->type0 != 'multipart') {
 	          $result[] = $entity;