issue 1637, fixed a bug, a query result is incorrect when a value variable of condition is null

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10411 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2012-03-12 02:51:44 +00:00
parent ce726f9fe2
commit 5862244471

View file

@ -88,15 +88,21 @@
if(is_array($value)) if(is_array($value))
{ {
foreach($value AS $key=>$val) foreach($value AS $key=>$val)
{
if(isset($val))
{ {
$value[$key] = (int)$val; $value[$key] = (int)$val;
} }
} }
}
else else
{
if(isset($val))
{ {
$value = (int)$value; $value = (int)$value;
} }
} }
}
return $value; return $value;
} }