From 9c299eb9e695810272ed90c35993d34157d0d6ae Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Wed, 31 Oct 2012 04:31:23 -0400 Subject: [PATCH] Make sure HTML part size>0 before assuming the message has got HTML part --- program/include/rcube_message.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php index 38d1817..47aa449 100644 --- a/program/include/rcube_message.php +++ b/program/include/rcube_message.php @@ -483,7 +483,7 @@ if ($plugin['abort']) continue; - if ($part_mimetype == 'text/html') { + if ($part_mimetype == 'text/html' && $mail_part->size) { $got_html_part = true; } -- Gitblit v1.9.1