X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Ffatal_errors.php;h=a3a476ca543d5afcbe8069890861785aac2094c4;hb=3608f72d51e8126720024704398cf738e61f890b;hp=96a7d8539eb39de32922d865aa1654d63bf4feac;hpb=963e55ca1ea79e255f235e359cde9f7862191dc5;p=mailer.git diff --git a/inc/fatal_errors.php b/inc/fatal_errors.php index 96a7d8539e..a3a476ca54 100644 --- a/inc/fatal_errors.php +++ b/inc/fatal_errors.php @@ -37,8 +37,7 @@ if (!defined('__SECURITY')) { require($INC); } -if ((sizeof($FATAL) > 0) || (!empty($FATAL[0]))) -{ +if (getTotalFatalErrors() > 0) { // Main div container LOAD_TEMPLATE("fatal_header"); @@ -77,12 +76,14 @@ if ((sizeof($FATAL) > 0) || (!empty($FATAL[0]))) // Load main template mxchange_die(LOAD_TEMPLATE("runtime_fatal_table", true, $OUT)); } + + // Message to regular users (non-admin) $CORR = FATAL_REPORT_ERRORS; // PHP warnings fixed if ($check == "done") { if (IS_ADMIN()) $CORR = FATAL_CORRECT_ERRORS; - } + } // END - if // Load footer template LOAD_TEMPLATE("fatal_footer", false, $CORR);