From 8f11a776ecc934ba5e698a83bc964fbb007af801 Mon Sep 17 00:00:00 2001 From: ebullient Date: Mon, 29 Mar 2004 18:31:09 +0000 Subject: [PATCH] make break and updates more obvious git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6951 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/read_body.php b/src/read_body.php index 11c9c57d..81cab1c3 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -90,10 +90,9 @@ function findPreviousMessage($numMessages, $passed_id) { if ($thread_sort_messages || $allow_server_sort ) { foreach($server_sort_array as $key=>$value) { if ($passed_id == $value) { - if ($key == 0) { - break; + if ($key != 0) { + $result = $server_sort_array[$key - 1]; } - $result = $server_sort_array[$key - 1]; break; } } -- 2.25.1