diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index 1bedd3821b..76e43ba0d5 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -2056,6 +2056,10 @@ class mail_ui $content['msg'] = (is_array($error_msg)?implode("
",$error_msg):$error_msg); // Send mail ID so we can use it for actions $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_displaysubject'] = $subject; $linkData = array('menuaction'=>"mail.mail_ui.loadEmailBody","_messageID"=>$rowID);