mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
#18291306 : check if debugPrint buff is empty before printing
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6919 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ee2a8913bd
commit
0a25ab09b5
1 changed files with 2 additions and 2 deletions
|
|
@ -379,7 +379,7 @@
|
|||
}
|
||||
|
||||
// HTML 주석으로 출력
|
||||
if(__DEBUG_OUTPUT__ == 1 && Context::getResponseMethod() == 'HTML') {
|
||||
if($buff && __DEBUG_OUTPUT__ == 1 && Context::getResponseMethod() == 'HTML') {
|
||||
$buff = sprintf("[%s %s:%d]\n%s\n", date('Y-m-d H:i:s'), $file_name, $line_num, print_r($buff, true));
|
||||
|
||||
if(__DEBUG_PROTECT__ == 1 && __DEBUG_PROTECT_IP__ != $_SERVER['REMOTE_ADDR']) {
|
||||
|
|
@ -390,7 +390,7 @@
|
|||
}
|
||||
|
||||
// 파일에 출력
|
||||
if(__DEBUG_OUTPUT__ == 0) {
|
||||
if($buff && __DEBUG_OUTPUT__ == 0) {
|
||||
$debug_file = _XE_PATH_.'files/_debug_message.php';
|
||||
$buff = sprintf("[%s %s:%d]\n%s\n", date('Y-m-d H:i:s'), $file_name, $line_num, print_r($buff, true));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue