From 61adf129510551182ea95ff586f3a4f45003e480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Tue, 10 Jan 2023 08:30:24 +0100 Subject: [PATCH] Correction de bug --- WEB/Controller/UserController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WEB/Controller/UserController.php b/WEB/Controller/UserController.php index a7208415..0dc2da15 100644 --- a/WEB/Controller/UserController.php +++ b/WEB/Controller/UserController.php @@ -268,10 +268,10 @@ class UserController $model = new UserModel(); $code = $_POST['code']; $index = $_POST['index']; - $idEnigme = $_POST['idEnigme']; + $enigmeId = $_POST['enigmeId']; $utilisateur=$_SESSION['utilisateur']; $idPartie = $_SESSION['idPartie']; - $model->saveCodeMulti($utilisateur->getEmail(),$idEnigme, $idPartie, $index,$code); + $model->saveCodeMulti($utilisateur->getEmail(),$enigmeId, $idPartie, $index,$code); echo $code; } catch (Exception $e) {