浏览代码

Reset $msg on each iteration, otherwise a message with eg no subject
will take the subject from the previous message.

Thijs Kinkhorst 21 年之前
父节点
当前提交
ac61dd81d2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      functions/imap_messages.php

+ 1 - 0
functions/imap_messages.php

@@ -574,6 +574,7 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $show_num=false,
     $i = 0;
 
     foreach ($read_list as $r) {
+        $msg = array();
         // use unset because we do isset below
         $read = implode('',$r);