fix party page
This commit is contained in:
@@ -60,8 +60,9 @@ function afficher_formulaire() {
|
|||||||
<?php
|
<?php
|
||||||
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']);
|
creerPartie($_POST['nbCartesVertes'], $_POST['nbCartesOranges'], $_POST['nbCartesNoires']);
|
||||||
|
echo '<div>Partie en cours de création ...</div>';
|
||||||
} else {
|
} else {
|
||||||
afficher_formulaire();
|
afficher_formulaire();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user