修正一处可能的错误

This commit is contained in:
thinkphp
2016-05-25 18:18:52 +08:00
parent 15de3e328a
commit 190e870dce

View File

@@ -41,7 +41,7 @@ class Trace
*/
public function save(array $log = [])
{
if (IS_AJAX || IS_CLI || IS_API || 'html' != RESPONSE_TYPE) {
if (IS_AJAX || IS_CLI || IS_API || (defined('RESPONSE_TYPE') && 'html' != RESPONSE_TYPE)) {
// ajax cli api方式下不输出
return false;
}