summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-31 09:31:23 +0100
committerAleksander Machniak <alec@alec.pl>2012-10-31 09:31:23 +0100
commit9c299eb9e695810272ed90c35993d34157d0d6ae (patch)
tree4e5faf34c79c62c52daaa398078fcfcdb1a148e3 /program
parentabe164367bc15473f46a715e9cc46b062c87b2cb (diff)
Make sure HTML part size>0 before assuming the message has got HTML part
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_message.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php
index 38d18171c..47aa4493e 100644
--- a/program/include/rcube_message.php
+++ b/program/include/rcube_message.php
@@ -483,7 +483,7 @@ class rcube_message
if ($plugin['abort'])
continue;
- if ($part_mimetype == 'text/html') {
+ if ($part_mimetype == 'text/html' && $mail_part->size) {
$got_html_part = true;
}