Skip to content

Commit

Permalink
Mitigation de #421
Browse files Browse the repository at this point in the history
  • Loading branch information
darnuria committed Dec 7, 2020
1 parent c1666f3 commit 0ceb018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moteur/modification_type_contenant_post.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

$req = $bdd->prepare('UPDATE type_contenants SET nom = :nom, description = :description, masse = :masse, couleur = :couleur WHERE id = :id');
$req->bindParam(':id', $_POST['id'], PDO::PARAM_INT);
$req->bindParam(':masse', $_POST['masse'], PDO::PARAM_STR);
$req->bindParam(':masse', (int)$_POST['masse'], PDO::PARAM_INT);
$req->bindParam(':nom', $_POST['nom'], PDO::PARAM_STR);
$req->bindParam(':description', $_POST['description'], PDO::PARAM_STR);
$req->bindParam(':couleur', $_POST['couleur'], PDO::PARAM_STR);
Expand Down

0 comments on commit 0ceb018

Please sign in to comment.