mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
cope with not set DATE from retrieved headers
This commit is contained in:
parent
6d76f3d6ba
commit
7f3c3e5613
@ -2056,6 +2056,10 @@ class mail_ui
|
|||||||
$content['msg'] = (is_array($error_msg)?implode("<br>",$error_msg):$error_msg);
|
$content['msg'] = (is_array($error_msg)?implode("<br>",$error_msg):$error_msg);
|
||||||
// Send mail ID so we can use it for actions
|
// Send mail ID so we can use it for actions
|
||||||
$content['mail_id'] = $rowID;
|
$content['mail_id'] = $rowID;
|
||||||
|
if (!is_array($headers) || !isset($headers['DATE']))
|
||||||
|
{
|
||||||
|
$headers['DATE'] = (is_array($envelope)&&$envelope['DATE']?$envelope['DATE']:'');
|
||||||
|
}
|
||||||
$content['mail_displaydate'] = mail_bo::_strtotime($headers['DATE'],'ts',true);
|
$content['mail_displaydate'] = mail_bo::_strtotime($headers['DATE'],'ts',true);
|
||||||
$content['mail_displaysubject'] = $subject;
|
$content['mail_displaysubject'] = $subject;
|
||||||
$linkData = array('menuaction'=>"mail.mail_ui.loadEmailBody","_messageID"=>$rowID);
|
$linkData = array('menuaction'=>"mail.mail_ui.loadEmailBody","_messageID"=>$rowID);
|
||||||
|
Loading…
Reference in New Issue
Block a user