Skip to content

Commit 58955e5

Browse files
author
Jarrett Chisholm
committed
- fixed issue where json response 'integer' strings turned into integers (issue chriskacerguis#244)
1 parent 9413b8b commit 58955e5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

application/libraries/Format.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,7 @@ public function to_csv()
210210
// Encode as JSON
211211
public function to_json()
212212
{
213-
if (strnatcmp(phpversion(),'5.3.3') >= 0) {
214-
return json_encode($this->_data, JSON_NUMERIC_CHECK);
215-
} else {
216-
return json_encode($this->_data);
217-
}
213+
return json_encode($this->_data);
218214
}
219215

220216
// Encode as Serialized array

0 commit comments

Comments
 (0)