From b8a6ff0768e8b8c39ff763b396ef182bcbb994d8 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 23 Nov 2009 08:39:09 -0500 Subject: [PATCH] fix dumb json parsing bug --- classes/PostFixtures.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PostFixtures.inc b/classes/PostFixtures.inc index 7a46e37..9ee67f2 100644 --- a/classes/PostFixtures.inc +++ b/classes/PostFixtures.inc @@ -94,7 +94,7 @@ class PostFixtures { function parse_json($input) { if (($data = json_decode($input)) !== false) { if (is_array($data) || is_object($data)) { - return array_values((array)$data); + return (array)$data; } } return false;