]> git.mxchange.org Git - mailer.git/commitdiff
But only when it is not empty
authorquix0r <quix0r@mxchange.org>
Tue, 26 Feb 2013 22:30:10 +0000 (22:30 +0000)
committerquix0r <quix0r@mxchange.org>
Tue, 26 Feb 2013 22:30:10 +0000 (22:30 +0000)
inc/db/lib-mysql3.php

index 29c5541a7756ea6b608022a844cc8285e2283792..96210d25f1494222ed20b8db2a7a5716d6550631 100644 (file)
@@ -356,19 +356,19 @@ function SQL_ERROR ($file, $line, $message) {
        $GLOBALS['last_sql_error'] = mysql_error();
 
        // Is login set?
-       if (isset($GLOBALS['mysql']['login'])) {
+       if (!empty($GLOBALS['mysql']['login'])) {
                // Secure login name in message
                $message = str_replace($GLOBALS['mysql']['login'], '***', $message);
        } // END - if
 
        // Is database password set?
-       if (isset($GLOBALS['mysql']['password'])) {
+       if (!empty($GLOBALS['mysql']['password'])) {
                // Secure password in message
                $message = str_replace($GLOBALS['mysql']['password'], '***', $message);
        } // END - if
 
        // Is database name set?
-       if (isset($GLOBALS['mysql']['dbase'])) {
+       if (!empty($GLOBALS['mysql']['dbase'])) {
                // Secure database name in message
                $message = str_replace($GLOBALS['mysql']['dbase'], '***', $message);
        } // END - if