X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fhandler.php;h=9096a5beef801a03e8da5a25f63170a899423455;hp=692876664cef7848551183062db0a4c1b13a8666;hb=a28637f0eb7975f2240c42d349e5f08a9722d9bb;hpb=508228c85fba8448d00865b1639cb8cd7a69e457 diff --git a/inc/handler.php b/inc/handler.php index 692876664c..9096a5beef 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]