浏览代码

fixed problems with viewing messages ending with a )

Luke Ehresman 25 年之前
父节点
当前提交
d5c3b8a6f9
共有 1 个文件被更改,包括 3 次插入2 次删除
  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++;
          }