mailbox_display (printMessage).
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7545
7612ce4b-ef26-0410-bec9-
ea0150e637f0
$type = substr($type, 0, $pos);
}
$type = explode("/", $type);
$type = substr($type, 0, $pos);
}
$type = explode("/", $type);
+ if(!is_array($type) || count($type) < 2) {
$msg['TYPE0'] = 'text';
$msg['TYPE1'] = 'plain';
$msg['TYPE0'] = 'text';
$msg['TYPE1'] = 'plain';
+ } else {
+ $msg['TYPE0'] = strtolower($type[0]);
+ $msg['TYPE1'] = strtolower($type[1]);
}
break;
case 'received':
}
break;
case 'received':