mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fix warning regarding PEAT::isError
This commit is contained in:
parent
24b7137b1c
commit
ed32bd4c01
@ -1839,12 +1839,15 @@ class mail_ui
|
||||
}
|
||||
$this->mail_bo->reopen($mailbox);
|
||||
// retrieve the flags of the message, before touching it.
|
||||
$headers = $this->mail_bo->getMessageHeader($uid, $partID,true,true,$mailbox);
|
||||
if (PEAR::isError($headers)) {
|
||||
try
|
||||
{
|
||||
$headers = $this->mail_bo->getMessageHeader($uid, $partID,true,true,$mailbox);
|
||||
}
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user