fix dumb json parsing bug

This commit is contained in:
John Bintz 2009-11-23 08:39:09 -05:00
parent 6f5d8c620f
commit b8a6ff0768

View File

@ -94,7 +94,7 @@ class PostFixtures {
function parse_json($input) { function parse_json($input) {
if (($data = json_decode($input)) !== false) { if (($data = json_decode($input)) !== false) {
if (is_array($data) || is_object($data)) { if (is_array($data) || is_object($data)) {
return array_values((array)$data); return (array)$data;
} }
} }
return false; return false;