Skip to content

Commit aadb994

Browse files
authored
Update Util.php
1 parent 690d127 commit aadb994

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Util.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace Common;
4+
35
/**
46
* @package Util Class in PHP7
57
* @author Jovanni Lo
@@ -260,7 +262,7 @@ public static function implode_and($arr) {
260262
* @param bool $return should return json
261263
* @return string json encoded string
262264
*/
263-
public static function print_status($status = 200, $data = array(), $options = JSON_PRETTY_PRINT | JSON_NUMERIC_CHECK, $return = false) {
265+
public static function print_status($status = 200, $data = array(), $options = JSON_PRETTY_PRINT, $return = false) {
264266
if (is_numeric($status)) $status_code = $status;
265267
else if (is_bool($status)) $status_code = $status ? 200 : 400;
266268
else $status_code = strtolower($status) === 'ok' ? 200 : 400;

0 commit comments

Comments
 (0)