From ef0c76592e79029a5b9040f979e3207aaec0522f Mon Sep 17 00:00:00 2001 From: ovclas Date: Thu, 8 Mar 2012 01:17:31 +0000 Subject: [PATCH] if value is array, type cast modify git-svn-id: http://xe-core.googlecode.com/svn/trunk@10378 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/xml/xmlquery/argument/Argument.class.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/classes/xml/xmlquery/argument/Argument.class.php b/classes/xml/xmlquery/argument/Argument.class.php index 756c043ea..f336da07c 100644 --- a/classes/xml/xmlquery/argument/Argument.class.php +++ b/classes/xml/xmlquery/argument/Argument.class.php @@ -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 @@ } -?> \ No newline at end of file +?>