fix: 토너먼트 참가시 한쪽 슬롯이 가득 차면 입장이 닫히는 버그

This commit is contained in:
2022-03-26 17:01:59 +09:00
parent 730f23a8db
commit 4dd305de64
+2 -2
View File
@@ -98,8 +98,8 @@ if($btn == '참가') {
], 'no=%i', $general['no']);
}
$grpCount = $db->queryFirstField('SELECT count(*) FROM tournament where grp<10 GROUP BY grp HAVING count(*)=8');
if($grpCount >= 8) {
$grpCount = $db->queryFirstColumn('SELECT count(grp) FROM tournament where grp<10 GROUP BY grp;');
if(min($grpCount) >= 8) {
$gameStor->tournament = 2;
$gameStor->phase = 0;
}