Fix copyerror, this eliminates some warnings of undefined index in the msg list.
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 10 Mar 2003 16:31:57 +0000 (16:31 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 10 Mar 2003 16:31:57 +0000 (16:31 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4631 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index 7bc1313d8ccfb2cd4554a65489f12a7cb7699d45..f13bae916ebd45aaca1df4982175f719d4890edf 100755 (executable)
@@ -553,7 +553,7 @@ function sqimap_mailbox_list($imap_stream) {
             $inbox_ary = sqimap_run_command ($imap_stream, "LIST \"\" \"INBOX\"",
                                              true, $response, $message);
             /* Another workaround for literals */
             $inbox_ary = sqimap_run_command ($imap_stream, "LIST \"\" \"INBOX\"",
                                              true, $response, $message);
             /* 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]*)$",
                      $inbox_ary[0], $regs)) {
                    $inbox_ary[0] = $regs[1] . '"' . addslashes(trim($inbox_ary[1])) .
                if (ereg("^(\\* [A-Z]+.*)\\{[0-9]+\\}([ \n\r\t]*)$",
                      $inbox_ary[0], $regs)) {
                    $inbox_ary[0] = $regs[1] . '"' . addslashes(trim($inbox_ary[1])) .