X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fhandler.php;h=e4c5f9781114054420c38d8fb3ab812534d64a5b;hp=7bba6be8918fbeb5d3870c4038a72e9563735c62;hb=25b4a580b4c7e0d429eb8e436785d3c2ef304f8e;hpb=3af8b17c962e094e3eaffbd6d111290cdb286c92 diff --git a/inc/handler.php b/inc/handler.php index 7bba6be891..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]