From: thomppj Date: Sat, 29 Dec 2001 07:19:01 +0000 (+0000) Subject: Fixed bug #497181 X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=c64c33f4966966373166e24b74133a0665596e58;hp=a81b65568f97c3fa558b60cc6cc6fc9175451608 Fixed bug #497181 http://sf.net/tracker/?func=detail&atid=100311&aid=497181&group_id=311 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1998 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/ChangeLog b/ChangeLog index e365aa55..e4da669a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,7 @@ Version 1.2.2 -- ?? - Changed conf.pl invocation from '#/usr/bin/perl' to '#!/usr/bin/env perl' to help people who have perl somewhere else. (Bug #496753) + - Fixed sorting of folder list, bug #497181 Version 1.2.1 -- 25 December 2001 --------------------------------- diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 770186fc..9fad2e84 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -251,9 +251,9 @@ function user_strcasecmp($a, $b) { if (($a_del == $delimiter) && ($b_del == $delimiter)) { $result = 0; } else if (($a_del == $delimiter) && ($b_del != $delimiter)) { - $result = 1; - } else if (($a_del != $delimiter) && ($b_del == $delimiter)) { $result = -1; + } else if (($a_del != $delimiter) && ($b_del == $delimiter)) { + $result = 1; } else { $result = strcasecmp($a{$c}, $b{$c}); }