contacte l'admin si ça marche pas
This commit is contained in:
@@ -61,8 +61,12 @@ function afficher_formulaire() {
|
||||
if (isset($_POST['creerPartie'])) {
|
||||
$total = (int)$_POST['nbCartesVertes'] + (int)$_POST['nbCartesOranges'] + (int)$_POST['nbCartesNoires'];
|
||||
if ($total <= 10) {
|
||||
creerPartie($_POST['nbCartesVertes'], $_POST['nbCartesOranges'], $_POST['nbCartesNoires']);
|
||||
$res = creerPartie($_POST['nbCartesVertes'], $_POST['nbCartesOranges'], $_POST['nbCartesNoires']);
|
||||
if($res === false){
|
||||
echo "<div>Erreur lors de la création de la partie. Veuillez contacter l'administrateur</div>";
|
||||
} else {
|
||||
echo '<div>Partie en cours de création ...</div>';
|
||||
}
|
||||
} else {
|
||||
afficher_formulaire();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user