diff options
Diffstat (limited to 'www-ssl/inc/error_handler.php')
-rwxr-xr-x | www-ssl/inc/error_handler.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/www-ssl/inc/error_handler.php b/www-ssl/inc/error_handler.php index cbb3bd83..b0a41581 100755 --- a/www-ssl/inc/error_handler.php +++ b/www-ssl/inc/error_handler.php @@ -32,9 +32,12 @@ set_error_handler("Error_Handler"); ini_set( "error_reporting", E_ALL); - ini_set( "display_errors", "On"); - ini_set( "display_startup_errors", "On"); - ini_set( "html_errors", "On"); + if( $DEBUG) + { + ini_set( "display_errors", "On"); + ini_set( "display_startup_errors", "On"); + ini_set( "html_errors", "On"); + } // send errors function send_errors() |