projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix networking display on profiles
[platal.git]
/
modules
/
xnetlists.php
diff --git
a/modules/xnetlists.php
b/modules/xnetlists.php
index
b4e5987
..
ae991b4
100644
(file)
--- a/
modules/xnetlists.php
+++ b/
modules/xnetlists.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-20
08
Polytechnique.org *
+ * Copyright (C) 2003-20
10
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-119,7
+119,7
@@
class XnetListsModule extends ListsModule
$page->assign('may_update', may_update());
if (count($listes) > 0 && !$globals->asso('has_ml')) {
$page->assign('may_update', may_update());
if (count($listes) > 0 && !$globals->asso('has_ml')) {
- XDB::execute("UPDATE
#groupex#.asso
+ XDB::execute("UPDATE
groups
SET flags = CONCAT_WS(',', IF(flags = '', NULL, flags), 'has_ml')
WHERE id = {?}",
$globals->asso('id'));
SET flags = CONCAT_WS(',', IF(flags = '', NULL, flags), 'has_ml')
WHERE id = {?}",
$globals->asso('id'));
@@
-142,7
+142,7
@@
class XnetListsModule extends ListsModule
S::assert_xsrf_token();
}
S::assert_xsrf_token();
}
- if (!Post::has('liste')) {
+ if (!Post::has('liste')
|| !Post::v('liste')
) {
$page->trigError('Le champs « adresse souhaitée » est vide.');
return;
}
$page->trigError('Le champs « adresse souhaitée » est vide.');
return;
}
@@
-191,7
+191,7
@@
class XnetListsModule extends ListsModule
$red . $mdir . '@listes.polytechnique.org');
}
$red . $mdir . '@listes.polytechnique.org');
}
- XDB::execute("UPDATE
#groupex#.asso
+ XDB::execute("UPDATE
groups
SET flags = CONCAT_WS(',', IF(flags = '', NULL, flags), 'has_ml')
WHERE id = {?}",
$globals->asso('id'));
SET flags = CONCAT_WS(',', IF(flags = '', NULL, flags), 'has_ml')
WHERE id = {?}",
$globals->asso('id'));
@@
-222,9
+222,9
@@
class XnetListsModule extends ListsModule
$not_in_group_ext = array();
$ann = XDB::fetchColumn('SELECT uid
$not_in_group_ext = array();
$ann = XDB::fetchColumn('SELECT uid
- FROM
#groupex#.membre
s
+ FROM
group_member
s
WHERE asso_id = {?}', $globals->asso('id'));
WHERE asso_id = {?}', $globals->asso('id'));
- $users = User::getBu
ildUsersWithUIDs($ann, 'promo,full_name'
);
+ $users = User::getBu
lkUsersWithUIDs($ann
);
$not_in_list = array();
foreach ($users as $user) {
$not_in_list = array();
foreach ($users as $user) {