X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fhandler.php;h=74eb58753db0a3e35ddbf41d591776fd0ef98c18;hb=4bc66f2d8d5fa3952210b626ac0a621f144e64be;hp=6daf6e476644d8bc4e10f7926991270de7c3949e;hpb=ae798f7e416793adf24a3b87024df1027e520ce2;p=mailer.git diff --git a/inc/handler.php b/inc/handler.php index 6daf6e4766..74eb58753d 100644 --- a/inc/handler.php +++ b/inc/handler.php @@ -1,7 +1,7 @@ the main page to continue."); - } else { - // No debug extension found, so regular output - debug_report_bug($msg); - } + debug_report_bug($errfile, $errline, $message); +} + +// Init error handler +function initErrorHandler () { + enableExitOnError(false); +} + +// Enable exit on error +function enableExitOnError ($enable=true) { + $GLOBALS['error_handler']['exit_on_error'] = $enable; } // [EOF]