ZP-828 Move secondary content type check inside primary. Released under the...

ZP-828 Move secondary content type check inside primary. Released under the Affero GNU General Public License (AGPL) version 3.
parent bd85e1be
......@@ -96,10 +96,10 @@ function add_sub_part(&$email, $part) {
if (isset($part) && isset($email)) {
if (isset($part->ctype_primary)) {
$params['content_type'] = $part->ctype_primary;
}
if (isset($part->ctype_secondary)) {
$params['content_type'] .= '/' . $part->ctype_secondary;
}
}
if (isset($part->ctype_parameters)) {
foreach ($part->ctype_parameters as $k => $v) {
if(strcasecmp($k, 'boundary') != 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment