Skip to content

Commit

Permalink
Bug: 13322 Don't attempt to build a DOM from an empty part.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jul 5, 2014
1 parent e920c00 commit b8773f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imp/lib/Contents/View.php
Expand Up @@ -220,8 +220,8 @@ public function printAttach($id)

$part = reset($render);

/* Directly render part if this is not an HTML part. */
if (stripos($part['type'], 'text/html') !== 0) {
/* Directly render part if this is not an HTML part or it is empty. */
if (stripos($part['type'], 'text/html') !== 0 || !strlen($part['data'])) {
return $part;
}

Expand Down

0 comments on commit b8773f9

Please sign in to comment.