mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 06:28:40 +00:00
fix(web): a35ab7bfdf
This commit is contained in:
parent
a35ab7bfdf
commit
cb1a6f33f4
@ -71,7 +71,7 @@
|
|||||||
global $contest;
|
global $contest;
|
||||||
$group_id = $_POST['group_id'];
|
$group_id = $_POST['group_id'];
|
||||||
|
|
||||||
$users = DB::selectAll("select b.username as username, b.rating as rating from groups_users a inner join user_info b on a.username = b.username where a.group_id = $group_id");
|
$users = DB::selectAll("select b.username as username from groups_users a inner join user_info b on a.username = b.username where a.group_id = $group_id");
|
||||||
|
|
||||||
foreach ($users as $user) {
|
foreach ($users as $user) {
|
||||||
DB::query("replace into contests_registrants (username, contest_id, has_participated) values ('{$user['username']}', {$contest['id']}, 0)");
|
DB::query("replace into contests_registrants (username, contest_id, has_participated) values ('{$user['username']}', {$contest['id']}, 0)");
|
||||||
|
Loading…
Reference in New Issue
Block a user