fix party page

This commit is contained in:
2024-04-15 13:42:22 +02:00
parent a329ffc9e9
commit 6aba875ca9

View File

@@ -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();
} }