From 107ae60cd69934271b6cb6ca93a3bd72e74ce468 Mon Sep 17 00:00:00 2001 From: stekkel Date: Wed, 18 Jun 2003 22:14:12 +0000 Subject: [PATCH] In case of messages without a plain/text part (i.e. 1 part which is application/octet-stream then the the contenttype wasn't set? git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5087 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/download.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/download.php b/src/download.php index 710bdb6a..332b284b 100644 --- a/src/download.php +++ b/src/download.php @@ -53,7 +53,11 @@ if ($ent_id) { if ($message->rfc822_header) { $subject = $message->rfc822_header->subject; - $charset = $header->content_type->properties['charset']; + if (isset($header->content_type)) { + $charset = $header->content_type->properties['charset']; + } else { + $charset = ''; + } } else { $header = $message->header; $charset = $header->getParameter('charset'); -- 2.25.1