X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Flists%2Flists.inc.php;h=0a8e0d27c9ffd3328e1133fdfc352801f4ffb00f;hb=cecdf74795e71ed038411915dad5e0dff6ea51fa;hp=217745aa40195817cb760c8eff8ce1cb20bf6a08;hpb=1c0419d6b4c94643bfa7bed9a6b435bbdbbae02f;p=platal.git diff --git a/modules/lists/lists.inc.php b/modules/lists/lists.inc.php index 217745a..0a8e0d2 100644 --- a/modules/lists/lists.inc.php +++ b/modules/lists/lists.inc.php @@ -30,15 +30,15 @@ function list_sort_owners(&$members, $tri_promo = true) foreach($members as $mem) { $user = User::getSilent($mem); if (!$user) { - $membres[0][] = array('l' => $mem, 'p' => (!$tri_promo ? 'inconnue' : null), 'n' => null, 'x' => null, 'b' => null); + $membres[0][] = array('l' => $mem, 'p' => (!$tri_promo ? 'inconnus' : null), 'n' => null, 'x' => null, 'b' => null); } else { $uid = $user->id(); $nom = $user->directoryName(); - $promo = $user->promo(); + $promo = $user->category(); if (!$promo) { - $promo = 'non-X'; + $promo = 'extérieurs'; } - $key = $tri_promo ? ($promo != 'non-X' ? $promo : 0) : strtoupper(@$nom{0}); + $key = $tri_promo ? ($promo != 'extérieurs' ? $promo : 0) : strtoupper(@$nom{0}); if ($tri_promo) { $promo = null; }