Fixed PHP-based JSON decode to output arrays, not objects
authorDan Fuhry <dan@enanocms.org>
Mon, 16 Jan 2012 09:22:08 -0500
changeset 1357 4f83d730633f
parent 1356 e80b5733ce9d
child 1358 a8fc93c06fcb
Fixed PHP-based JSON decode to output arrays, not objects
includes/functions.php
--- a/includes/functions.php	Mon Dec 05 08:16:00 2011 -0500
+++ b/includes/functions.php	Mon Jan 16 09:22:08 2012 -0500
@@ -4870,7 +4870,7 @@
 	if ( function_exists('json_decode') )
 	{
 		// using PHP5 with JSON support
-		return json_decode($data);
+		return json_decode($data, true);
 	}
 	*/