From 53a78838f8c7082bcae36fffa57714d39be9d66e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 11 Apr 2012 17:28:04 +0200 Subject: [PATCH] Fix: Avoid call if function not defined --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 93710e6602d..0cc6ca201c9 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2163,7 +2163,7 @@ function dol_print_error($db='',$error='') $syslog.=", msg=".$msg; } } - if (empty($dolibarr_main_prod) && $_SERVER['DOCUMENT_ROOT'] && function_exists('xdebug_call_file')) + if (empty($dolibarr_main_prod) && $_SERVER['DOCUMENT_ROOT'] && function_exists('xdebug_print_function_stack') && function_exists('xdebug_call_file')) { xdebug_print_function_stack(); $out.='XDebug informations:'."
\n";