mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
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:
parent
24541b0ea8
commit
ef0c76592e
1 changed files with 14 additions and 2 deletions
|
|
@ -84,7 +84,19 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($column_type == 'number')
|
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;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue