From: Roland Häder Date: Tue, 26 Feb 2013 22:30:10 +0000 (+0000) Subject: But only when it is not empty X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=da5c63bacddced77a951cbe7b223f314885a6c87;p=mailer.git But only when it is not empty --- diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php index 29c5541a77..96210d25f1 100644 --- a/inc/db/lib-mysql3.php +++ b/inc/db/lib-mysql3.php @@ -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