fix for the bodystructure parser
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 26 Aug 2002 10:07:22 +0000 (10:07 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 26 Aug 2002 10:07:22 +0000 (10:07 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3462 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime.class.php

index f18b902..e8c9161 100644 (file)
@@ -837,7 +837,6 @@ class message {
 
                         $msg->type0 = $arg_a[0];
                         $msg->type1 = $arg_a[1];
-
                         $arr = $arg_a[2];
                         if (is_array($arr)) {
                             $hdr->parameters = $arg_a[2];
@@ -871,6 +870,7 @@ class message {
                         $hdr->disposition = (isset($arg_a[2]) ? $arg_a[2] : $hdr->disposition);
                         $hdr->language = (isset($arg_a[3]) ? $arg_a[3] : $hdr->language);
                         $msg->header = $hdr;
+                       ++$i;
                     }
                     return (array($msg, $i));
                 default: break;
@@ -905,7 +905,6 @@ class message {
                 }
             }
         }
-
         return array($properties, $i);
     }