if value is array, type cast modify

git-svn-id: http://xe-core.googlecode.com/svn/trunk@10378 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-03-08 01:17:31 +00:00
parent 24541b0ea8
commit ef0c76592e

View file

@ -84,7 +84,19 @@
}
}
if($column_type == 'number')
$value = (int)$value;
{
if(is_array($value))
{
foreach($value AS $key=>$val)
{
$value[$key] = (int)$val;
}
}
else
{
$value = (int)$value;
}
}
return $value;
}
@ -188,4 +200,4 @@
}
?>
?>