This commit is contained in:
thaaoblues 2023-07-02 20:11:42 +02:00
parent 59cb7c2bd9
commit 561460851d

View file

@ -69,16 +69,16 @@ if(isset($_POST['add_epreuve'])){
}
$_POST['est_finale'] = $_POST['est_finale'] == 'on' ? true : false;
$_POST['est_finale'] = $_POST['est_finale'] == 'on' ? 0 : 1;
$req = $db->prepare("INSERT INTO ville_epreuve(indice,reponse,photo,id_equipe,est_finale,ordre,est_trouvee) VALUES(?,?,?,?,?,?,?)");
$req->execute(array(htmlspecialchars($_POST['indice']),
htmlspecialchars($_POST['reponse']),
$file_name,
(int)htmlspecialchars($_POST['id_equipe']),
(bool)htmlspecialchars($_POST['est_finale']),
(int)htmlspecialchars($_POST['est_finale']),
(int)htmlspecialchars($_POST['ordre']),
false
0
));