diff --git a/WEB/Model/UserModel.php b/WEB/Model/UserModel.php index 27b6870e..51346589 100644 --- a/WEB/Model/UserModel.php +++ b/WEB/Model/UserModel.php @@ -44,6 +44,7 @@ class UserModel } public function calculTpsMaXPartie( int $idPartie) : int { + $tpsMaxPartie = 0; $lesIdEnigmes = $this->partie_gateway->findAllEnigmeIdInPartie($idPartie); foreach ($lesIdEnigmes as $idEnigme){ $enigme = $this->enigme_gateway->findById($idEnigme)[0];