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