diff --git a/mail/inc/class.mail_bo.inc.php b/mail/inc/class.mail_bo.inc.php index e6f14ff6cf..5bc115c378 100644 --- a/mail/inc/class.mail_bo.inc.php +++ b/mail/inc/class.mail_bo.inc.php @@ -3669,7 +3669,16 @@ class mail_bo { $_structure = $this->getStructure($_uid, $_partID, $_folder, $_preserveSeen); } - + if (!is_object($_structure)) + { + return array( + array( + 'body' => null, + 'mimeType' => 'text/plain', + 'charSet' => self::$displayCharset, + ) + ); + } switch($_structure->getPrimaryType()) { case 'application':