From a1fe95ae43f62e92e753f136f2baece84cdd9840 Mon Sep 17 00:00:00 2001 From: printempw Date: Sat, 6 Feb 2016 23:33:55 +0800 Subject: [PATCH] encode JSON with JSON_PRETTY_PRINT --- includes/user.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/user.class.php b/includes/user.class.php index 2747600e..92ed6905 100644 --- a/includes/user.class.php +++ b/includes/user.class.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: prpr - * @Last Modified time: 2016-02-06 23:06:21 + * @Last Modified time: 2016-02-06 23:32:13 */ class User @@ -153,7 +153,7 @@ class User $json['errno'] = 1; $json['msg'] = "Non-existent user."; } - return json_encode($json); + return json_encode($json, JSON_PRETTY_PRINT); } public function updateLastModified() {