버그 수정

This commit is contained in:
2020-04-30 16:47:11 +09:00
parent c65737f554
commit 884c1ea82c
5 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ if($tournament != 6) {
}
$myGold = $db->queryFirstField('SELECT gold FROM general WHERE no = %i', $generalID);
$bets = array_splice($db->queryFirstList('SELECT * FROM betting WHERE general_id = %i', $generalID), -16);
$bets = $db->queryFirstList('SELECT * FROM betting WHERE general_id = %i', $generalID);
$bets = array_splice($bets, -16);
$totalBet = array_sum($bets);
$oldBet = $bets[$betTarget];