We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5c781a commit 0e16eb6Copy full SHA for 0e16eb6
application/libraries/Format.php
@@ -227,6 +227,9 @@ public function to_json()
227
$callback = isset($_GET['callback']) ? $_GET['callback'] : '';
228
if ($callback === '')
229
{
230
+ return json_encode($this->_data);
231
+
232
+ /* Had to take out this code, it doesn't work on Objects.
233
$str = $this->_data;
234
array_walk_recursive($str, function(&$item, $key)
235
@@ -237,6 +240,7 @@ public function to_json()
237
240
});
238
241
239
242
return json_encode($str);
243
+ */
244
}
245
246
// we only honour jsonp callback which are valid javascript identifiers
0 commit comments