Some internal TODOs fixed, rewrites to script inclusion
[mailer.git] / inc / mysql-connect.php
index 2caef50a738ec7f305d413af27360f33f14bdac3..ef247614edc166e47acd83f2935969433e190deb 100644 (file)
@@ -70,9 +70,8 @@ function __errorHandler ($errno, $errstr, $errfile, $errline) {
 
        // Output message to user and die
        if (EXT_IS_ACTIVE("debug")) {
-               // Debug extension found! :-)
-               // @TODO Can this be rewritten to mxchange_die() ?
-               die("Error message written to debug.log. Please try to call <a href=\"".URL."\">the main page</a> to continue.");
+               // Debug extension found! So Output a small message
+               mxchange_die("Error message written to debug.log. Please try to call <a href=\"".URL."\">the main page</a> to continue.");
        } else {
                // No debug extension found
                // @TODO Find a way to rewrite debug_print_backtrace() so we can maybe
@@ -128,6 +127,10 @@ $_CONFIG = array(
        'last_update' => time()
 );
 
+// Init important $header variable
+global $header;
+$header = 0;
+
 // Init fatal messages
 global $FATAL;
 $FATAL = array();