fix warning regarding PEAT::isError

This commit is contained in:
Klaus Leithoff 2016-01-08 14:47:31 +00:00
parent 24b7137b1c
commit ed32bd4c01

View File

@ -1839,12 +1839,15 @@ class mail_ui
}
$this->mail_bo->reopen($mailbox);
// retrieve the flags of the message, before touching it.
try
{
$headers = $this->mail_bo->getMessageHeader($uid, $partID,true,true,$mailbox);
if (PEAR::isError($headers)) {
}
catch (egw_exception $e)
{
$error_msg[] = lang("ERROR: Message could not be displayed.");
$error_msg[] = lang("In Mailbox: %1, with ID: %2, and PartID: %3",$mailbox,$uid,$partID);
$error_msg[] = $headers->message;
$error_msg[] = array2string($headers->backtrace[0]);
egw_framework::message($e->getMessage(), 'error');
}
if (!empty($uid)) $this->mail_bo->getFlags($uid);
$envelope = $this->mail_bo->getMessageEnvelope($uid, $partID,true,$mailbox);