Use "0" as default
This commit is contained in:
parent
baea99dee6
commit
bbb2f1fcf5
|
@ -140,7 +140,7 @@ class System
|
||||||
* @param string $content_type Type of the input (Default: 'application/json').
|
* @param string $content_type Type of the input (Default: 'application/json').
|
||||||
* @param integer $options JSON options
|
* @param integer $options JSON options
|
||||||
*/
|
*/
|
||||||
public static function jsonExit($x, $content_type = 'application/json', int $options = null) {
|
public static function jsonExit($x, $content_type = 'application/json', int $options = 0) {
|
||||||
header("Content-type: $content_type");
|
header("Content-type: $content_type");
|
||||||
echo json_encode($x, $options);
|
echo json_encode($x, $options);
|
||||||
exit();
|
exit();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user