fix/avoid fatal on getStructure

This commit is contained in:
Klaus Leithoff 2015-08-25 10:37:10 +00:00
parent effed359a6
commit 3561712b6d

View File

@ -5062,7 +5062,7 @@ class emailadmin_imapbase
'ids' => $uidsToFetch,
))->first();
return $mail->getStructure();
return is_object($mail)?$mail->getStructure():null;
}
catch (Exception $e)
{