summaryrefslogtreecommitdiff
path: root/program/steps/mail/func.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-09-07 18:54:37 +0000
committerthomascube <thomas@roundcube.net>2006-09-07 18:54:37 +0000
commite170b4b7f85767703293116c95d9e02020b1c99a (patch)
treeb9b708c37c1016709fcb3314039d2137c99e26f4 /program/steps/mail/func.inc
parentd656f1ca71de0ec88da9ac84987bdeb44e371ccf (diff)
Some bugfixes and session expiration stuff
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r--program/steps/mail/func.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 0cd6652ad..827f13100 100644
--- a/program/steps/mail/func.inc
+++ b/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)
{