Commit a9373516 authored by Manfred Kutas's avatar Manfred Kutas

ZP-1021 Return SYNC_BODYPREFERENCE_PLAIN when $bpTypes is false in

GetBodyPreferenceBestMatch.

Released under the Affero GNU General Public License (AGPL) version 3.
parent da431dbf
......@@ -865,6 +865,9 @@ class Utils {
* @return int
*/
public static function GetBodyPreferenceBestMatch($bpTypes) {
if ($bpTypes === false) {
return SYNC_BODYPREFERENCE_PLAIN;
}
// The best choice is RTF, then HTML and then MIME in order to save bandwidth
// because MIME is a complete message including the headers and attachments
if (in_array(SYNC_BODYPREFERENCE_RTF, $bpTypes)) return SYNC_BODYPREFERENCE_RTF;
......
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