From 60a835d2efb2486c66adf39e92ff2e15f41b40f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Fri, 13 Jan 2023 10:47:08 +0100 Subject: [PATCH] Correction de bug --- WEB/Model/UserModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WEB/Model/UserModel.php b/WEB/Model/UserModel.php index 38b71c00..7b679d5f 100644 --- a/WEB/Model/UserModel.php +++ b/WEB/Model/UserModel.php @@ -192,7 +192,7 @@ class UserModel $points = 0; $result = $this->resoudre_gateway->getAllByPartieAndUtilisateur($mailUtilisateur, $idPartie); foreach ($result as $row){ - if ($row['ended'] == 1){ + if ($row['temps'] == 0){ $points += 0; } else if ($row['classement'] == 1){