]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-connect.php
Refback will be payed now (user cannot setup currently)
[mailer.git] / inc / mysql-connect.php
index ccbc5ac41e17031e8746011d39d330fb0d953b75..15badd903ca0a81a7a5e81cf3d14d4dd2195c4af 100644 (file)
@@ -66,13 +66,13 @@ function __errorHandler ($errno, $errstr, $errfile, $errline) {
                $errline
        );
        DEBUG_LOG(__FUNCTION__.":".$msg, true);
-       print "Please report this error:<pre>";
+       print "Please report this error at <a href=\"http://forum.mxchange.org\" target=\"_blank\">forum.mxchange.org</a>:<pre>";
        debug_print_backtrace();
-       die("</pre>");
+       die("</pre>Thanks for your help finding bugs.");
 }
 
 // Set error handler
-//set_error_handler('__errorHandler');
+set_error_handler('__errorHandler');
 
 // Check if the user setups his MySQL stuff...
 if ((empty($MySQL['login'])) && (!defined('mxchange_installing')) && (!isset($_GET['installing'])) && (isBooleanConstantAndTrue('mxchange_installed'))) {
@@ -111,6 +111,9 @@ if ((!isBooleanConstantAndTrue('mxchange_installing')) && (isBooleanConstantAndT
 
                        // Is it a valid resource?
                        if ($db === true) {
+                               // Remove MySQL array from namespace
+                               unset($MySQL);
+
                                // Load configuration stuff
                                $_CONFIG = LOAD_CONFIG();