wip
This commit is contained in:
@@ -662,8 +662,8 @@ class Services_JSON
|
||||
// return (float)$str;
|
||||
|
||||
// Return float or int, as appropriate
|
||||
return ((float)$str == (integer)$str)
|
||||
? (integer)$str
|
||||
return ((float)$str == (int)$str)
|
||||
? (int)$str
|
||||
: (float)$str;
|
||||
|
||||
} elseif (preg_match('/^("|\').*(\1)$/s', $str, $m) && $m[1] == $m[2]) {
|
||||
|
||||
Reference in New Issue
Block a user