Aleksander Machniak
2013-03-15 0ef894ec2949100aee8624701edbf38087ea9047
Fix has_*_part() methods so they return same result no matter what
prefer_html option value is
1 files modified
8 ■■■■ changed files
program/lib/Roundcube/rcube_message.php 8 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_message.php
@@ -208,8 +208,8 @@
        // check all message parts
        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)) {
                // Skip if part is an attachment, don't use is_attachment() here
                if ($part->filename) {
                    continue;
                }
@@ -248,8 +248,8 @@
        // check all message parts
        foreach ($this->mime_parts as $part) {
            if ($part->mimetype == 'text/plain') {
                // Skip if part is an attachment
                if ($this->is_attachment($part)) {
                // Skip if part is an attachment, don't use is_attachment() here
                if ($part->filename) {
                    continue;
                }