Browse Source

make break and updates more obvious

Erin Schnabel 21 years ago
parent
commit
4f6d8c9fad
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/read_body.php

+ 2 - 3
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;
             }
         }