minor fix to in displaying attachments
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 29 Jul 2002 07:58:59 +0000 (07:58 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 29 Jul 2002 07:58:59 +0000 (07:58 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3159 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime.class.php

index 861586a034cdd5f4bebbfb01bf4486d878298778..d2f5133bf3f2018e14663a1c80105793bca2c5f6 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
 <?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.
  *
  * 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 (!$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;
                  $result = $entity->getAttachments($exclude_id, $result);
               } else if ($entity->type0 != 'multipart') {
                  $result[] = $entity;