1
1
Fork 0

Issue 3645: Avoid problems with boolean values

This commit is contained in:
Michael 2017-08-23 19:40:42 +00:00
parent fdc8190567
commit e533572ca3

View file

@ -527,6 +527,10 @@ class dba {
$i = 0;
$args = array();
foreach ($params AS $param) {
// Avoid problems with some MySQL servers and boolean values. See issue #3645
if (is_bool($param)) {
$param = (int)$param;
}
$args[++$i] = $param;
}