fix for bug #596930
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 19 Aug 2002 07:47:07 +0000 (07:47 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 19 Aug 2002 07:47:07 +0000 (07:47 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3353 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/read_body.php

index cf677ab..9ffb30e 100644 (file)
@@ -584,7 +584,7 @@ $FirstTimeSee = !$message->is_seen;
 $message->is_seen = true;
 $messages[$uidvalidity][$passed_id] = $message;
 
 $message->is_seen = true;
 $messages[$uidvalidity][$passed_id] = $message;
 
-if (isset($passed_ent_id)) {
+if (isset($passed_ent_id) && $passed_ent_id) {
    $message = $message->getEntity($passed_ent_id);
    $read = sqimap_run_command ($imapConnection, "FETCH $passed_id BODY[$passed_ent_id.HEADER]", true, $response, $msg, $uid_support);
    $rfc822_header = new rfc822_header();
    $message = $message->getEntity($passed_ent_id);
    $read = sqimap_run_command ($imapConnection, "FETCH $passed_id BODY[$passed_ent_id.HEADER]", true, $response, $msg, $uid_support);
    $rfc822_header = new rfc822_header();