Improves membres ordering in MLs.
[platal.git] / modules / lists / lists.inc.php
index 5f8c2f4..bba0ff0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -41,13 +41,13 @@ function list_sort_owners($members, $tri_promo = true)
             if (!$category) {
                 $category = 'extérieurs';
             }
-            $membres[$key][$name . $member] = array('name' => $name, 'email' => $member, 'category' => $category,
-                                                    'uid' => $uid, 'lost' => $user->lost, 'hasProfile' => $hasProfile);
+            $membres[$key][$name] = array('name' => $name, 'email' => $member, 'category' => $category,
+                                          'uid' => $uid, 'lost' => $user->lost, 'hasProfile' => $hasProfile);
         }
     }
 
     ksort($membres);
-    foreach($membres as $membre)  {
+    foreach($membres as &$membre)  {
         ksort($membre);
     }
     return $membres;