mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-23 04:12:18 +09:00
issue 1627 if value is array, type cast modify
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10377 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
529c0e8d44
commit
98ea5e352a
1 changed files with 14 additions and 2 deletions
|
|
@ -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 @@
|
|||
}
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue