projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3f113
)
Text parts were not being caught here since they all potentially have embedded parts
author
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 19 Feb 2010 16:52:29 +0000
(09:52 -0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 19 Feb 2010 18:23:16 +0000
(11:23 -0700)
imp/lib/Contents.php
patch
|
blob
|
history
diff --git
a/imp/lib/Contents.php
b/imp/lib/Contents.php
index
c264652
..
f8969e4
100644
(file)
--- 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(