From 316cf7e916ec1cead689ba7d82237621be93c2b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?No=C3=A9=20Garnier?=
Date: Mon, 9 Jan 2023 20:26:36 +0100
Subject: [PATCH] Correction
---
WEB/Controller/PartieGateway.php | 2 --
WEB/View/src/pages/Multijoueur/FileAttente.php | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/WEB/Controller/PartieGateway.php b/WEB/Controller/PartieGateway.php
index b03b3d3c..1ecac2e6 100644
--- a/WEB/Controller/PartieGateway.php
+++ b/WEB/Controller/PartieGateway.php
@@ -251,14 +251,12 @@ class PartieGateway
throw new Exception("La partie est pleine");
}
if ($player + 1 == $playerNumberPerGame) {
- echo "La partie est all\n";
$query = "INSERT INTO Participer VALUES (:partie,:utilisateur,1)";
$this->con->executeQuery($query, array(
"partie" => array($idPartie, SQLITE3_INTEGER),
"utilisateur" => array($mailUtilisateur, SQLITE3_TEXT)));
}
else {
- echo "La partie n'est pas all\n";
$query = "INSERT INTO Participer VALUES (:partie,:utilisateur,0)";
$this->con->executeQuery($query, array(
"partie" => array($idPartie, SQLITE3_INTEGER),
diff --git a/WEB/View/src/pages/Multijoueur/FileAttente.php b/WEB/View/src/pages/Multijoueur/FileAttente.php
index 7bbadc95..4240d472 100644
--- a/WEB/View/src/pages/Multijoueur/FileAttente.php
+++ b/WEB/View/src/pages/Multijoueur/FileAttente.php
@@ -44,7 +44,7 @@
".$lesJoeurs[0]->getPseudo()."
";
+ echo "".$lesJoueurs[0]->getPseudo()."
";
}
else{
echo "Player 1
";