X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffatal_errors.php;h=a3a476ca543d5afcbe8069890861785aac2094c4;hp=96a7d8539eb39de32922d865aa1654d63bf4feac;hb=3daede4c904e23905c3e48dd6749019deca0a0e0;hpb=c3b3af29e6e80926519ade146ac657c036782bd3 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);