From 1125857730709d843e7759dd97dd4ef392b8bc5f Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 29 Jul 2019 11:18:26 +0200 Subject: [PATCH] Same fix as commit 377766293f9b5e1bfcbf5a5bbfee54a9a5d2d0ab for mail display --- api/src/Mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index 7affc41a5e..1313f749bc 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -5784,7 +5784,7 @@ class Mail $attachment['mimeType'] = $mime_type; $attachment['uid'] = $_uid; $attachment['partID'] = $mime_id; - if (!isset($attachment['name'])||empty($attachment['name'])) $attachment['name'] = $part->getName(); + if (!isset($attachment['name'])||empty($attachment['name'])) $attachment['name'] = $part->getName() ? $part->getName() : lang('forwarded message'); if ($fetchTextCalendar) { //error_log(__METHOD__.' ('.__LINE__.') '.array2string($part->getAllContentTypeParameters()));