forked from rebillar/site-accueil-insa
fixed boolean
This commit is contained in:
parent
da8e2fc88c
commit
76a75dfcc0
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ if(isset($_POST['add_epreuve'])){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$_POST['est_finale'] = $_POST['est_finale'] == 'on' ? 0 : 1;
|
$_POST['est_finale'] = $_POST['est_finale'] == 'on' ? 1 : 0;
|
||||||
|
|
||||||
$req = $db->prepare("INSERT INTO ville_epreuve(indice,reponse,photo,id_equipe,est_finale,ordre,est_trouvee) VALUES(?,?,?,?,?,?,?)");
|
$req = $db->prepare("INSERT INTO ville_epreuve(indice,reponse,photo,id_equipe,est_finale,ordre,est_trouvee) VALUES(?,?,?,?,?,?,?)");
|
||||||
$req->execute(array(htmlspecialchars($_POST['indice']),
|
$req->execute(array(htmlspecialchars($_POST['indice']),
|
||||||
|
|
Loading…
Reference in a new issue