diff --git a/framework/base/control.class.php b/framework/base/control.class.php index 8a5211adb2..c5936f20a1 100644 --- a/framework/base/control.class.php +++ b/framework/base/control.class.php @@ -885,7 +885,11 @@ class baseControl if($type != 'json') die(); $data = (array) $data; - if(helper::isAjaxRequest() or $this->viewType == 'json') print(json_encode($data)) and die(helper::removeUTF8Bom(ob_get_clean())); + if(helper::isAjaxRequest() or $this->viewType == 'json') + { + print(json_encode($data)); + die(helper::removeUTF8Bom(ob_get_clean())); + } /** * 响应非ajax的请求。