Fix delete game

This commit is contained in:
2026-03-02 08:17:24 +01:00
parent d9a2cd09d1
commit e06193cc7a
+1 -1
View File
@@ -6,7 +6,7 @@ require_once 'db.php';
$game_id = isset($_SESSION['game_id']) ? $_SESSION['game_id'] : null;
if ($game_id) {
$stmt = $db->prepare("DELETE FROM games WHERE id = ?");
$stmt = $db->prepare(" DELETE FROM games WHERE `games`.`id` = ?");
$stmt->execute([$game_id]);
} else {
echo "Aucune partie à supprimer.";