Issue 1778: DB Classes: Add prepared statements support- fix for IN clause when value is empty string

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10491 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2012-03-28 14:56:44 +00:00
parent 4065581cb3
commit f1a80e7bbd
2 changed files with 6 additions and 6 deletions

View file

@ -92,7 +92,7 @@ class Argument {
if ($column_type == 'number') {
if (is_array($value)) {
foreach ($value AS $key => $val) {
if (isset($val)) {
if (isset($val) && $val !== '') {
$value[$key] = (int) $val;
}
}