From: stekkel Date: Fri, 23 Aug 2002 12:33:08 +0000 (+0000) Subject: Bugfixes mime class. (Like I mentioned in the mail Paul) X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=bc185bd2db846fdb884aa35df64bb6f7ac5e4370 Bugfixes mime class. (Like I mentioned in the mail Paul) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3424 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/class/mime.class.php b/class/mime.class.php index 2e1cdef3..dd2eec53 100644 --- a/class/mime.class.php +++ b/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));