From 33646461fd04f53de0e4dc79f0b6bb2e4253724e Mon Sep 17 00:00:00 2001 From: thomasb Date: Thu, 7 Sep 2006 18:54:37 +0000 Subject: Some bugfixes and session expiration stuff git-svn-id: https://svn.roundcube.net/trunk@338 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/func.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roundcubemail/program/steps/mail') diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 0cd6652ad..827f13100 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -1245,9 +1245,9 @@ function rcmail_first_text_part($message_struct) { global $IMAP; - if (!is_array($message_struct['parts'])) - return FALSE; - + if (empty($message_struct['parts'])) + return $message_struct['UID'] ? $IMAP->get_body($message_struct['UID']) : false; + // check all message parts foreach ($message_struct['parts'] as $pid => $part) { -- cgit v1.2.3