fix for the bodystructure parser
[squirrelmail.git] / class / mime.class.php
index f18b90266c64c56c7d54a003446de606e882c6c1..e8c916100a2c5852e34141fa188ee7bd0c60b6a7 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);
     }