diff --git a/app/common.php b/app/common.php index 7b9d0648..1b87d6eb 100644 --- a/app/common.php +++ b/app/common.php @@ -53,7 +53,7 @@ function xdebug($data, $type = 'xdebug', $suffix = null, $force = false, $file = $file = is_null($suffix) ? runtime_path() . 'xdebug/' . date('Ymd') . '.txt' : runtime_path() . 'xdebug/' . date('Ymd') . "_{$suffix}" . '.txt'; } file_put_contents($file, "[" . date('Y-m-d H:i:s') . "] " . "========================= {$type} ===========================" . PHP_EOL, FILE_APPEND); - $str = (is_string($data) ? $data : (is_array($data) || is_object($data)) ? print_r($data, true) : var_export($data, true)) . PHP_EOL; + $str = (is_string($data) ? $data : ((is_array($data) || is_object($data)) ? print_r($data, true) : var_export($data, true))) . PHP_EOL; $force ? file_put_contents($file, $str) : file_put_contents($file, $str, FILE_APPEND); } } @@ -120,4 +120,4 @@ function auth($node = null) return $check; } -} \ No newline at end of file +}