From 4c3e968f46bcc009cf71d51db34776b5d2be88ad Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 19 Feb 2010 09:52:29 -0700 Subject: [PATCH] Text parts were not being caught here since they all potentially have embedded parts --- imp/lib/Contents.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imp/lib/Contents.php b/imp/lib/Contents.php index c2646529a..f8969e4c0 100644 --- a/imp/lib/Contents.php +++ b/imp/lib/Contents.php @@ -475,10 +475,10 @@ class IMP_Contents $ret[$mime_id]['name'] = $mime_part->getName(true); } - if (($textmode == 'inline') && + if (!is_null($ret[$mime_id]['data']) && + ($textmode == 'inline') && !strlen($ret[$mime_id]['data']) && - $this->isAttachment($type) && - !$viewer->embeddedMimeParts()) { + $this->isAttachment($type)) { if (empty($ret[$mime_id]['status'])) { $ret[$mime_id]['status'] = array( array( -- 2.11.0