fixed wrong variable scope (bug #1810900 Undefined index: in Message.class.php)

This commit is contained in:
Sebastian Mendel
2007-10-10 15:35:41 +00:00
parent 1708f2ecdd
commit 08c983715f
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ function PMA_DBI_connect($user, $password, $is_controluser = false)
if (empty($link) && ! $is_controluser) {
if ($is_controluser) {
trigger_error($strControluserFailed, E_USER_WARNING);
trigger_error($GLOBALS['strControluserFailed'], E_USER_WARNING);
return false;
}
PMA_auth_fails();

View File

@@ -108,7 +108,7 @@ function PMA_DBI_connect($user, $password, $is_controluser = false)
if ($return_value == false) {
if ($is_controluser) {
trigger_error($strControluserFailed, E_USER_WARNING);
trigger_error($GLOBALS['strControluserFailed'], E_USER_WARNING);
return false;
}
PMA_auth_fails();