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; }