Browse Source

fixed problems with viewing messages ending with a )

Luke Ehresman 25 years ago
parent
commit
d5c3b8a6f9
1 changed files with 3 additions and 2 deletions
  1. 3 2
      functions/imap_messages.php

+ 3 - 2
functions/imap_messages.php

@@ -267,6 +267,7 @@
       return $header;
    }
 
+
    /******************************************************************************
     **  Returns the body of a message.
     ******************************************************************************/
@@ -276,8 +277,8 @@
        
       $i = 0;
       $j = 0;
-      while ($i < count($read)) {
-         if ( ($i != 0) && ($i != count($read)-1) && ($i != count($read)) ) {
+      while ($i < count($read)-1) {
+         if ( ($i != 0) ) {
             $bodytmp[$j] = $read[$i];
             $j++;
          }