X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fhandler.php;h=bdc20c6c733ffeb6b9b7ceee6656737d626909a3;hb=fdfe034bd27d3d4eaf75dda77e76c8555177b076;hp=6f597545c7eb7977bcad63181b0b681ea7b52c74;hpb=e01fcf1ca8ddeb72af76465df3ef72301a1cdae7;p=mailer.git diff --git a/inc/handler.php b/inc/handler.php index 6f597545c7..bdc20c6c73 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($errfile, $errline, $message); +} + +// Init error handler +function initErrorHandler () { + enableExitOnError(false); +} + +// Enable exit on error +function enableExitOnError ($enable=true) { + $GLOBALS['error_handler']['exit_on_error'] = $enable; } // [EOF]