mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
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);
|
$_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())
|
switch($_structure->getPrimaryType())
|
||||||
{
|
{
|
||||||
case 'application':
|
case 'application':
|
||||||
|
Loading…
Reference in New Issue
Block a user