Correction du bug avec les booleen à false et passant 0 ou 1
This commit is contained in:
parent
c685f68836
commit
7b824298b7
|
@ -632,7 +632,15 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$params[$nom] = $datas[$nom];
|
//Gestion des booléan à false
|
||||||
|
if ($field['TYPE'] == "TINYINT"){
|
||||||
|
if ($datas[$nom] == false)
|
||||||
|
$params[$nom] = 0;
|
||||||
|
else
|
||||||
|
$params[$nom] = 1;
|
||||||
|
}else{
|
||||||
|
$params[$nom] = $datas[$nom];
|
||||||
|
}
|
||||||
$fieldNames[] = $nom;
|
$fieldNames[] = $nom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue