From 8ae934130a63d7a91e8987f2d65fc81183d955a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Tue, 10 Jan 2023 07:05:35 +0100 Subject: [PATCH] Correction --- WEB/Controller/PartieGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WEB/Controller/PartieGateway.php b/WEB/Controller/PartieGateway.php index ccb67a5a..2d9b1d6e 100644 --- a/WEB/Controller/PartieGateway.php +++ b/WEB/Controller/PartieGateway.php @@ -305,7 +305,7 @@ class PartieGateway } public function findEnigmeIdInPartieWithIndex($idPartie, $index) : int{ - $query = "SELECT * FROM Contenir WHERE partie = :idPartie AND index = :index"; + $query = "SELECT * FROM Contenir WHERE partie = :idPartie AND indexEnigme = :index"; $this->con->executeQuery($query, array( "idPartie" => array($idPartie, SQLITE3_INTEGER), "index" => array($index, SQLITE3_INTEGER)