소스 검색

Fixed bug #497181
http://sf.net/tracker/?func=detail&atid=100311&aid=497181&group_id=311

thomppj 23 년 전
부모
커밋
eb10fb8a92
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      ChangeLog
  2. 2 2
      functions/imap_mailbox.php

+ 1 - 0
ChangeLog

@@ -15,6 +15,7 @@ Version 1.2.2 -- ??
   - Changed conf.pl invocation from '#/usr/bin/perl' to
   - Changed conf.pl invocation from '#/usr/bin/perl' to
     '#!/usr/bin/env perl' to help people who have perl somewhere
     '#!/usr/bin/env perl' to help people who have perl somewhere
     else. (Bug #496753)
     else. (Bug #496753)
+  - Fixed sorting of folder list, bug #497181
   	
   	
 Version 1.2.1 -- 25 December 2001
 Version 1.2.1 -- 25 December 2001
 ---------------------------------
 ---------------------------------

+ 2 - 2
functions/imap_mailbox.php

@@ -251,9 +251,9 @@ function user_strcasecmp($a, $b) {
         if (($a_del == $delimiter) && ($b_del == $delimiter)) {
         if (($a_del == $delimiter) && ($b_del == $delimiter)) {
             $result = 0;
             $result = 0;
         } else if (($a_del == $delimiter) && ($b_del != $delimiter)) {
         } else if (($a_del == $delimiter) && ($b_del != $delimiter)) {
-            $result = 1;
-        } else if (($a_del != $delimiter) && ($b_del == $delimiter)) {
             $result = -1;
             $result = -1;
+        } else if (($a_del != $delimiter) && ($b_del == $delimiter)) {
+            $result = 1;
         } else {
         } else {
             $result = strcasecmp($a{$c}, $b{$c});
             $result = strcasecmp($a{$c}, $b{$c});
         }
         }