From: Stéphane Jacob Date: Wed, 9 Feb 2011 10:32:22 +0000 (+0100) Subject: Improves membres ordering in MLs. X-Git-Tag: xorg/1.1.0~1^2~32 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=57a45fc4dfd40372a5583461024d46ec52b3c51a;p=platal.git Improves membres ordering in MLs. Signed-off-by: Stéphane Jacob --- diff --git a/modules/lists/lists.inc.php b/modules/lists/lists.inc.php index 94eb931..bba0ff0 100644 --- a/modules/lists/lists.inc.php +++ b/modules/lists/lists.inc.php @@ -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;