diff --git a/WEB/Controller/UserController.php b/WEB/Controller/UserController.php index 6bc8b6fa..4f3f5c73 100644 --- a/WEB/Controller/UserController.php +++ b/WEB/Controller/UserController.php @@ -247,6 +247,7 @@ class UserController $idPartie = $_GET['idPartie']; $index = $_GET['index']; $lastIndex = $model->getLastIndex($idPartie); + echo $lastIndex; if ($lastIndex != 0 && $index == $lastIndex + 1) { if ($model->checkGameIsEnd($idPartie)) { $this->endGame(); diff --git a/WEB/View/src/pages/Multijoueur/LobbyEnd.php b/WEB/View/src/pages/Multijoueur/LobbyEnd.php index 17cf92e0..3670a72a 100644 --- a/WEB/View/src/pages/Multijoueur/LobbyEnd.php +++ b/WEB/View/src/pages/Multijoueur/LobbyEnd.php @@ -33,13 +33,11 @@