try to catch further errors on structure retrieval

This commit is contained in:
Klaus Leithoff 2014-01-17 13:14:40 +00:00
parent 38dcee204a
commit 7256ad2239

View File

@ -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':