projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'platal-1.0.0'
[platal.git]
/
modules
/
xnetlists.php
diff --git
a/modules/xnetlists.php
b/modules/xnetlists.php
index
aaa7519
..
43f4006
100644
(file)
--- a/
modules/xnetlists.php
+++ b/
modules/xnetlists.php
@@
-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;
}
@@
-218,13
+218,10
@@
class XnetListsModule extends ListsModule
$mails = array_map(create_function('$arr', 'return $arr[1];'), $members);
$subscribers = array_unique($mails);
$mails = array_map(create_function('$arr', 'return $arr[1];'), $members);
$subscribers = array_unique($mails);
- $not_in_group_x = array();
- $not_in_group_ext = array();
-
$ann = XDB::fetchColumn('SELECT uid
FROM group_members
WHERE asso_id = {?}', $globals->asso('id'));
$ann = XDB::fetchColumn('SELECT uid
FROM group_members
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) {