Skip to content

Commit

Permalink
Merge pull request #184 from ravindrakhokharia/master
Browse files Browse the repository at this point in the history
Fixed issue #8857: Fixed issue of type casting and return number value
  • Loading branch information
c-schmitz committed Mar 24, 2014
2 parents dfd813a + f22c58b commit bf7fb09
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions application/libraries/BigData.php
Expand Up @@ -196,20 +196,19 @@ protected static function xmlrpc_echo_array($data)
echo '</data>';
echo '</array>';
}

/**
* Prints XMLRPC numeric types.
* @param type $data
*/
protected static function xmlrpc_echo_number($data)
{
if (is_float($data))
{
self::tag('double', $data);
}
elseif (is_int($data))
{
if (floor($data) == $data){
self::tag('int', $data);
}
else {
self::tag('double', $data);
}
}

protected static function xmlrpc_echo_object($data)
Expand Down

0 comments on commit bf7fb09

Please sign in to comment.