$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