forked from extern/egroupware
try to catch further errors on structure retrieval
This commit is contained in:
parent
38dcee204a
commit
7256ad2239
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user