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