3 ème essaie
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent 9b538c6651
commit a1de871fab

@ -251,7 +251,6 @@ class UserController
$utilisateur = $_SESSION['utilisateur'];
$idPartie = $_GET['idPartie'];
$index = $_GET['index'];
$dateDebut = $model->getDateDebut($idPartie);
$lastIndex = $model->getLastIndex($idPartie);
if ($lastIndex != 0 && $index == $lastIndex + 1) {
if ($model->checkGameIsEnd($idPartie)) {
@ -259,6 +258,7 @@ class UserController
return;
}
$points = $model->getPointsAtTheEnd($utilisateur->getEmail(), $idPartie);
$dateDebut = $model->getDateDebut($idPartie);
require($rep . $vues['lobbyEnd']);
} else {
if ($index == 1 ){
@ -267,6 +267,7 @@ class UserController
$enigme = $model->getEnigmebyPartieIdAndIndex($idPartie, $index);
$model->resoudreEnigmeMulti($utilisateur, $enigme->getIdEnigme(), $idPartie, $index);
$code = $model->getCode($utilisateur->getEmail(), $enigme->getIdEnigme());
$dateDebut = $model->getDateDebut($idPartie);
require($rep . $vues['partie']);
}
} catch (Exception $e) {

Loading…
Cancel
Save