X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fxnetlists.php;h=43f4006eb1655fb0e0a69cd735575417a2a3ace1;hb=ba39c6d2636c971e5e4fe9d99eb5ed1fdc57d72d;hp=aaa75190734f30384b67df2f8298b75b5ea11a33;hpb=00ca0ad5370df5be4a0272364fb16a4385ffabfe;p=platal.git diff --git a/modules/xnetlists.php b/modules/xnetlists.php index aaa7519..43f4006 100644 --- a/modules/xnetlists.php +++ b/modules/xnetlists.php @@ -142,7 +142,7 @@ class XnetListsModule extends ListsModule 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; } @@ -218,13 +218,10 @@ class XnetListsModule extends ListsModule $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')); - $users = User::getBuildUsersWithUIDs($ann, 'promo,full_name'); + $users = User::getBulkUsersWithUIDs($ann); $not_in_list = array(); foreach ($users as $user) {