diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-03-14 13:20:28 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-03-14 13:20:28 +0100 |
commit | 574928200fd8da1194af9a9a1e741c77d7a50185 (patch) | |
tree | d3c6386599dc52782130b4568b6c6809b75aa575 | |
parent | 542f15bfece569ba3d07f57339aca22e535027dd (diff) |
Use $mime_parts not $parts in has_*_part() methods so detection is
correct no matter if prefer_html is enabled or not.
-rw-r--r-- | program/lib/Roundcube/rcube_message.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_message.php b/program/lib/Roundcube/rcube_message.php index 7d58a8eb5..1e3d143eb 100644 --- a/program/lib/Roundcube/rcube_message.php +++ b/program/lib/Roundcube/rcube_message.php @@ -206,7 +206,7 @@ class rcube_message function has_html_part($enriched = false) { // check all message parts - foreach ($this->parts as $part) { + foreach ($this->mime_parts as $part) { if ($part->mimetype == 'text/html' || ($enriched && $part->mimetype == 'text/enriched')) { // Skip if part is an attachment if ($this->is_attachment($part)) { @@ -246,7 +246,7 @@ class rcube_message function has_text_part() { // check all message parts - foreach ($this->parts as $part) { + foreach ($this->mime_parts as $part) { if ($part->mimetype == 'text/plain') { // Skip if part is an attachment if ($this->is_attachment($part)) { |