From f2f034105b4c9fcb8e8f2d2af9cad7d51ca0abf3 Mon Sep 17 00:00:00 2001 From: stekkel Date: Wed, 23 Oct 2002 13:19:56 +0000 Subject: [PATCH] fix for navigating links in digests. Added check for message/rfc822 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3947 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/read_body.php b/src/read_body.php index 1ac417cf..49c29ac9 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -553,10 +553,13 @@ function formatMenubar($mailbox, $passed_id, $passed_ent_id, $message, $mbx_resp $entities = array(); $entity_count = array(); $c = 0; + foreach($message->parent->entities as $ent) { - $c++; - $entity_count[$c] = $ent->entity_id; - $entities[$ent->entity_id] = $c; + if ($ent->type0 == 'message' && $ent->type1 == 'rfc822') { + $c++; + $entity_count[$c] = $ent->entity_id; + $entities[$ent->entity_id] = $c; + } } $prev_link = _("Previous"); $next_link = _("Next"); -- 2.25.1