diff --git a/WEB/Controller/UserController.php b/WEB/Controller/UserController.php index b0899f3b..18030c2f 100644 --- a/WEB/Controller/UserController.php +++ b/WEB/Controller/UserController.php @@ -192,7 +192,7 @@ class UserController $utilisateur=$_SESSION['utilisateur']; $model->enigmeEnded($utilisateur->getEmail(),$enigme->getIdEnigme()); $index = $index + 1; - header("Location: index.php?action=goToGame&index=" . $index); + header("Location: index.php?action=goToGame&idPartie=" . $_SESSION['idPartie'] . "&index=". $index); } catch (Exception $e) { $error = "Erreur Inconnue"; require($rep . $vues['erreur']);