test
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent 7e4d60917e
commit 6bc0bd994c

@ -220,15 +220,15 @@ class UserController
$model = new UserModel(); $model = new UserModel();
$idPartie = $_SESSION['idPartie']; $idPartie = $_SESSION['idPartie'];
$etat = $model->getEtatPartie($idPartie); $etat = $model->getEtatPartie($idPartie);
// $lesJoueurs = $model->getLesJoueurs($idPartie); echo $etat;
if($etat == 1){ // if($etat == 1){
// $model->launchGame($idPartie); // // $model->launchGame($idPartie);
$echo = "1"; // $echo = "1";
// header("Location: index.php?action=goToGame&idPartie=" . $idPartie . "&index=1"); // // header("Location: index.php?action=goToGame&idPartie=" . $idPartie . "&index=1");
} // }
else{ // else{
$echo = "0"; // $echo = "0";
} // }
} catch (Exception $e) { } catch (Exception $e) {
$error = $e->getMessage(); $error = $e->getMessage();
require($rep . $vues['erreur']); require($rep . $vues['erreur']);

Loading…
Cancel
Save