From fa3e2410418bf0f07f7e621da131af16130f88e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Wed, 11 Jan 2023 19:17:01 +0100 Subject: [PATCH] deboguage --- WEB/Controller/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WEB/Controller/UserController.php b/WEB/Controller/UserController.php index 4f3f5c73..6bc67d6e 100644 --- a/WEB/Controller/UserController.php +++ b/WEB/Controller/UserController.php @@ -247,9 +247,9 @@ class UserController $idPartie = $_GET['idPartie']; $index = $_GET['index']; $lastIndex = $model->getLastIndex($idPartie); - echo $lastIndex; if ($lastIndex != 0 && $index == $lastIndex + 1) { if ($model->checkGameIsEnd($idPartie)) { + echo" end"; $this->endGame(); return; }