fix in case we couldn;t retrieve the message from the session
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 30 Aug 2002 16:47:14 +0000 (16:47 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 30 Aug 2002 16:47:14 +0000 (16:47 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3514 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/download.php

index e630d95b0928c615d4991c6bcd237afb884c9d1c..7778bb7385124e622523222db5b4e9b582c0860d 100644 (file)
@@ -43,6 +43,9 @@ if (!isset($passed_ent_id)) {
 }
 
 $message = &$messages[$mbx_response['UIDVALIDITY']]["$passed_id"];
+if (!is_object($message)) {
+    $message = sqimap_get_message($imapConnection,$passed_id, $mailbox);
+}
 $subject = $message->rfc822_header->subject;
 $message = &$message->getEntity($ent_id);
 $header = $message->header;