X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fhandler.php;h=e4c5f9781114054420c38d8fb3ab812534d64a5b;hp=e1e95237404c8f0a6dd8cef7788a39e43b38ce63;hb=4b32c7be676d4a191c869a5745f2890240852fb0;hpb=d8148e3f1f3a6762b2e786dbe99ada269dcf2ea0 diff --git a/inc/handler.php b/inc/handler.php index e1e9523740..e4c5f97811 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($message); +} + +// Init error handler +function initErrorHandler () { + enableExitOnError(false); +} + +// Enable exit on error +function enableExitOnError ($enable=true) { + $GLOBALS['error_handler']['exit_on_error'] = $enable; } // [EOF]