This commit is contained in:
Baoshuo Ren 2022-03-24 12:48:37 +08:00
parent a35ab7bfdf
commit cb1a6f33f4
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -71,7 +71,7 @@
global $contest;
$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) {
DB::query("replace into contests_registrants (username, contest_id, has_participated) values ('{$user['username']}', {$contest['id']}, 0)");