소스 검색

Fix copyerror, this eliminates some warnings of undefined index in the msg list.

Thijs Kinkhorst 22 년 전
부모
커밋
b2cd55c4bd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      functions/imap_mailbox.php

+ 1 - 1
functions/imap_mailbox.php

@@ -553,7 +553,7 @@ function sqimap_mailbox_list($imap_stream) {
             $inbox_ary = sqimap_run_command ($imap_stream, "LIST \"\" \"INBOX\"",
             $inbox_ary = sqimap_run_command ($imap_stream, "LIST \"\" \"INBOX\"",
                                              true, $response, $message);
                                              true, $response, $message);
             /* Another workaround for literals */
             /* Another workaround for literals */
-            if (isset($inbox_ary[1]) && substr($inbox_ary[$i],-3) == "}\r\n") {
+            if (isset($inbox_ary[1]) && substr($inbox_ary[0],-3) == "}\r\n") {
 		if (ereg("^(\\* [A-Z]+.*)\\{[0-9]+\\}([ \n\r\t]*)$",
 		if (ereg("^(\\* [A-Z]+.*)\\{[0-9]+\\}([ \n\r\t]*)$",
                      $inbox_ary[0], $regs)) {
                      $inbox_ary[0], $regs)) {
             	    $inbox_ary[0] = $regs[1] . '"' . addslashes(trim($inbox_ary[1])) .
             	    $inbox_ary[0] = $regs[1] . '"' . addslashes(trim($inbox_ary[1])) .