From 505296a751466d12cbd76729156b836b82a8d40a Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 9 Mar 2020 17:04:17 +0800 Subject: [PATCH] Update common.php --- application/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common.php b/application/common.php index b3ce16659..ba454fc3a 100644 --- a/application/common.php +++ b/application/common.php @@ -29,7 +29,7 @@ use Wechat\Loader; function p($data, $replace = false, $pathname = null) { is_null($pathname) && $pathname = RUNTIME_PATH . date('Ymd') . '.txt'; - $str = (is_string($data) ? $data : (is_array($data) || is_object($data)) ? print_r($data, true) : var_export($data, true)) . "\n"; + $str = (is_string($data) ? $data : ((is_array($data) || is_object($data)) ? print_r($data, true) : var_export($data, true))) . "\n"; $replace ? file_put_contents($pathname, $str) : file_put_contents($pathname, $str, FILE_APPEND); }