fix erreur de flemmard

This commit is contained in:
2026-03-03 20:22:06 +01:00
parent 26ee24193a
commit 0b0c5fdcde
+4 -2
View File
@@ -16,8 +16,10 @@ try {
}
// 2. Récupérer le pot total de la partie
require_once 'get_total_game_blind.php';
$total_pot = get_total_game_blind($game_id);
$stmt = $db->prepare("SELECT pot FROM games WHERE id = ?");
$stmt->execute([$game_id]);
$game = $stmt->fetch();
$pot = $game['pot'];
// 3. Mettre à jour le solde du gagnant
$stmt = $db->prepare("UPDATE players SET money = money + ? WHERE id = ?");