fix dumb json parsing bug
This commit is contained in:
parent
6f5d8c620f
commit
b8a6ff0768
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user