The content array must be encoded before returned
This commit is contained in:
parent
c495cd8225
commit
c1db2b636c
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ if ( ! function_exists('json_response'))
|
||||||
->output
|
->output
|
||||||
->set_status_header($status)
|
->set_status_header($status)
|
||||||
->set_content_type('application/json')
|
->set_content_type('application/json')
|
||||||
->set_output($content);
|
->set_output(json_encode($content));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue