From 3e6ccf3fcd791a13ff1075e0d6bd93819851357e Mon Sep 17 00:00:00 2001 From: zero Date: Tue, 12 Aug 2008 04:31:15 +0000 Subject: [PATCH] =?UTF-8?q?debugPrint=20=ED=95=A8=EC=88=98=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95.=20=EC=A0=95=ED=99=95=ED=95=98?= =?UTF-8?q?=EC=A7=80=EB=8A=94=20=EC=95=8A=EC=9C=BC=EB=82=98=20debug=5Fback?= =?UTF-8?q?track()=EC=8B=9C=20=EA=B2=B0=EA=B3=BC=EA=B0=92=EC=9D=98=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=EB=A1=9C=20=ED=8C=90=EB=8B=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4446 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- config/func.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/func.inc.php b/config/func.inc.php index 410f2343c..5f3d4340c 100644 --- a/config/func.inc.php +++ b/config/func.inc.php @@ -315,7 +315,7 @@ function debugPrint($buff = null, $display_line = true) { $debug_file = _XE_PATH_."files/_debug_message.php"; $bt = debug_backtrace(); - $first = array_shift($bt); + if(is_array($bt)) $first = array_shift($bt); $buff = sprintf("[%s:%d]\n%s\n", array_pop(explode(DIRECTORY_SEPARATOR, $first["file"])), $first["line"], print_r($buff,true)); if($display_line) $buff = "\n====================================\n".$buff."------------------------------------\n";