diff --git a/WEB/Controller/ResoudreGateway.php b/WEB/Controller/ResoudreGateway.php index 4c28ed7e..4806fbe8 100644 --- a/WEB/Controller/ResoudreGateway.php +++ b/WEB/Controller/ResoudreGateway.php @@ -281,7 +281,7 @@ class ResoudreGateway } } public function getLastIndex(int $idPartie) : int{ - $query="SELECT max(indexEnigme) FROM Resoudre + $query="SELECT max(indexEnigme) FROM Contenir WHERE partie=:partie"; $this->con->executeQuery($query, array( "partie" => array($idPartie, SQLITE3_INTEGER)));