Some functions rewritten to hungarian notation, handling of array rewritten
[mailer.git] / inc / fatal_errors.php
index 96a7d8539eb39de32922d865aa1654d63bf4feac..a3a476ca543d5afcbe8069890861785aac2094c4 100644 (file)
@@ -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);