X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fhandler.php;h=e4c5f9781114054420c38d8fb3ab812534d64a5b;hb=be3bcf24cbb7277998a5c149308c9fb644c13ef5;hp=f68a62d8755f03469ef6fa71d4304eb24060f3f3;hpb=414570c5081d337bb6c28dcf521bd8bca02f69e7;p=mailer.git diff --git a/inc/handler.php b/inc/handler.php index f68a62d875..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]