From: Thijs K. <ki...@us...> - 2003-03-10 16:32:08
|
Update of /cvsroot/squirrelmail/squirrelmail/functions In directory sc8-pr-cvs1:/tmp/cvs-serv27272 Modified Files: imap_mailbox.php Log Message: Fix copyerror, this eliminates some warnings of undefined index in the msg list. Index: imap_mailbox.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/functions/imap_mailbox.php,v retrieving revision 1.171 retrieving revision 1.172 diff -u -w -r1.171 -r1.172 --- imap_mailbox.php 24 Feb 2003 18:49:45 -0000 1.171 +++ imap_mailbox.php 10 Mar 2003 16:31:57 -0000 1.172 @@ -553,7 +553,7 @@ $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])) . |