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