Merge pull request #3648 from annando/develop
Issue 3645: Avoid problems with boolean values
This commit is contained in:
commit
d990f9b32f
1 changed files with 4 additions and 0 deletions
|
@ -527,6 +527,10 @@ class dba {
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$args = array();
|
$args = array();
|
||||||
foreach ($params AS $param) {
|
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;
|
$args[++$i] = $param;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue