From e1f977d332e0b904f575601e9358aac0e50addc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Wed, 11 Jan 2023 15:17:21 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20de=20bug=20dans=20=20le=20=20calcu?= =?UTF-8?q?l=20du=20temps=20de=20r=C3=A9solution?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 493a8925..0d94c519 100644 --- a/WEB/Model/UserModel.php +++ b/WEB/Model/UserModel.php @@ -196,7 +196,7 @@ class UserModel $temps = 0; $result = $this->resoudre_gateway->getAllByPartieAndUtilisateur($mailUtilisateur, $idPartie); foreach ($result as $row){ - $temps += $this->enigme_gateway->findById($row['enigme'])[0]->getTempsDeResolution(); + $temps += $row['temps']; } return $temps; }