PHP8 버전에서 경고문이 나오는 코드 추가 수정

This commit is contained in:
thisgun committed 2021-01-05 15:37:00 +09:00
1 parent 12c836104a
commit 6368a5b638
2 files changed
+13 -6

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ function show_debug_bar() {
}
$memory_usage = function_exists( 'memory_get_peak_usage' ) ? memory_get_peak_usage() : memory_get_usage();
$php_run_time = get_microtime()-$g5_debug['php']['begin_time'];
$php_run_time = (isset($g5_debug['php']) && isset($g5_debug['php']['begin_time'])) ? ( get_microtime() - $g5_debug['php']['begin_time'] ) : 0;
include_once( G5_PLUGIN_PATH.'/debugbar/debugbar.php' );
}