From 1003ca2062468296ece424db3f4cf5da16072931 Mon Sep 17 00:00:00 2001 From: alec Date: Sun, 19 Jul 2009 19:15:40 +0000 Subject: - don't call FETCH for empty (size=0) message parts git-svn-id: https://svn.roundcube.net/trunk@2770 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/func.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/steps/mail/func.inc') diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index a942c1a44..448663519 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -987,7 +987,7 @@ function rcmail_message_body($attrib) { if ($part->type == 'headers') $out .= rcmail_message_headers(sizeof($header_attrib) ? $header_attrib : NULL, $part->headers); - else if ($part->type == 'content') + else if ($part->type == 'content' && $part->size) { if (empty($part->ctype_parameters) || empty($part->ctype_parameters['charset'])) $part->ctype_parameters['charset'] = $MESSAGE->headers->charset; -- cgit v1.2.3