[geeklog-cvs] geeklog: Sort groups non-case sensitive
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Feb 1 07:35:09 EST 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/d3f66f393a12
changeset: 6745:d3f66f393a12
user: Dirk Haun <dirk at haun-online.de>
date: Sun Feb 01 11:26:53 2009 +0100
description:
Sort groups non-case sensitive
diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
system/lib-security.php | 8 +++-----
diffs (37 lines):
diff -r 29e633449941 -r d3f66f393a12 system/lib-security.php
--- a/system/lib-security.php Sun Feb 01 10:57:08 2009 +0100
+++ b/system/lib-security.php Sun Feb 01 11:26:53 2009 +0100
@@ -2,13 +2,13 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.5 |
+// | Geeklog 1.6 |
// +---------------------------------------------------------------------------+
// | lib-security.php |
// | |
// | Geeklog security library. |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2008 by the following authors: |
+// | Copyright (C) 2000-2009 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
// | Mark Limburg - mlimburg AT users DOT sourceforge DOT net |
@@ -31,8 +31,6 @@
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
-//
-// $Id: lib-security.php,v 1.75 2008/09/21 08:37:11 dhaun Exp $
/**
* This is the security library for Geeklog. This is used to implement Geeklog's
@@ -151,7 +149,7 @@
}
}
- ksort($groups);
+ uksort($groups, 'strcasecmp');
if ($_SEC_VERBOSE) {
COM_errorLog("****************leaving getusergroups(uid=$uid)***************",1);
More information about the geeklog-cvs
mailing list