From c64c33f4966966373166e24b74133a0665596e58 Mon Sep 17 00:00:00 2001 From: thomppj Date: Sat, 29 Dec 2001 07:19:01 +0000 Subject: [PATCH] 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 --- ChangeLog | 1 + functions/imap_mailbox.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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}); } -- 2.25.1