projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote branch 'origin/platal-1.0.0'
[platal.git]
/
modules
/
lists
/
lists.inc.php
diff --git
a/modules/lists/lists.inc.php
b/modules/lists/lists.inc.php
index
7daccf6
..
0a8e0d2
100644
(file)
--- 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) {
foreach($members as $mem) {
$user = User::getSilent($mem);
if (!$user) {
- $membres[0][] = array('l' => $mem, 'p' => (!$tri_promo ? 'inconnu
e
' : null), 'n' => null, 'x' => null, 'b' => null);
+ $membres[0][] = array('l' => $mem, 'p' => (!$tri_promo ? 'inconnu
s
' : null), 'n' => null, 'x' => null, 'b' => null);
} else {
$uid = $user->id();
$nom = $user->directoryName();
} else {
$uid = $user->id();
$nom = $user->directoryName();
- $promo = $user->
promo
();
+ $promo = $user->
category
();
if (!$promo) {
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;
}
if ($tri_promo) {
$promo = null;
}
@@
-74,16
+74,17
@@
function list_sort_members($members, $tri_promo = true)
}
// }}}
}
// }}}
+// {{{ function list_fetch_basic_info
-function list_fetch_
names
($members)
+function list_fetch_
basic_info
($members)
{
$res = array();
foreach ($members as $member) {
$user = User::getSilent($member);
if (!$user) {
{
$res = array();
foreach ($members as $member) {
$user = User::getSilent($member);
if (!$user) {
- $res[] = $member;
+ $res[] = $member
. ',,'
;
} else {
} else {
- $res[] = $user->f
ullName
();
+ $res[] = $user->f
orlifeEmail() . ',' . $user->directoryName() . ',' . $user->promo
();
}
}
return $res;
}
}
return $res;