fixed wrong variable scope (bug #1810900 Undefined index: in Message.class.php)
This commit is contained in:
parent
1708f2ecdd
commit
08c983715f
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user