瀏覽代碼

Bugfixes mime class. (Like I mentioned in the mail Paul)

stekkel 23 年之前
父節點
當前提交
b43252a5df
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      class/mime.class.php

+ 4 - 4
class/mime.class.php

@@ -853,7 +853,7 @@ class message {
                         $hdr->disposition = (isset($arg_a[8+$s]) ? $arg_a[8+$s] : $hdr->disposition);
                         $hdr->language = (isset($arg_a[9+$s]) ? $arg_a[9+$s] : $hdr->language);
                         $msg->header = $hdr;
-                        $arg_no = 0;
+//                        $arg_no = 0;
                         ++$i;
                         if ((substr($msg->entity_id, -2) == '.0') && ($msg->type0 !='multipart')) {
                            $msg->entity_id++;
@@ -863,9 +863,9 @@ class message {
                         $hdr->type1 = $arg_a[0];
                         $msg->type0 = 'multipart';
                         $msg->type1 = $arg_a[0];
-                        $hdr->parameters = (is_array($arg_a[1]) ? $arg_a[1] : $hdr->parameters);
-                        $hdr->disposition = (is_array($arg_a[2]) ? $arg_a[2] : $hdr->disposition);
-                        $hdr->language = (is_array($arg_a[3]) ? $arg_a[3] : $hdr->language);
+                        $hdr->parameters = (isset($arg_a[1]) ? $arg_a[1] : $hdr->parameters);
+                        $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;
                     }
                     return (array($msg, $i));