Commit 2e79fa129c53378ebfffeab96c2dff4fc79935eb
1 parent
c50a4c57
api/client/ajouter correction bool↔int
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
api/client/ajouter.php
@@ -14,9 +14,9 @@ if (clientExiste(donne("idCarte"))) { | @@ -14,9 +14,9 @@ if (clientExiste(donne("idCarte"))) { | ||
14 | 14 | ||
15 | if (donne("decouvert") && $_POST["decouvert"] != "false" && $_POST["decouvert"] != "0") { | 15 | if (donne("decouvert") && $_POST["decouvert"] != "false" && $_POST["decouvert"] != "0") { |
16 | verifierDroit(3); | 16 | verifierDroit(3); |
17 | - $decouvert = true; | 17 | + $decouvert = 1; |
18 | } else { | 18 | } else { |
19 | - $decouvert = false; | 19 | + $decouvert = 0; |
20 | } | 20 | } |
21 | 21 | ||
22 | $solde = floatval($_POST["solde"]); | 22 | $solde = floatval($_POST["solde"]); |