Fixed missing globals
This commit is contained in:
parent
8fe9490728
commit
9605deb78e
@ -28,13 +28,15 @@ $get_params = array(
|
||||
'dbname',
|
||||
'hostname',
|
||||
'initial',
|
||||
'old_username',
|
||||
'old_hostname',
|
||||
'tablename',
|
||||
'username',
|
||||
'viewing_mode'
|
||||
);
|
||||
foreach ($get_params as $one_get_param) {
|
||||
if (isset($_GET[$one_get_param])) {
|
||||
$GLOBALS[$one_get_param] = $_GET[$one_get_param];
|
||||
if (isset($_REQUEST[$one_get_param])) {
|
||||
$GLOBALS[$one_get_param] = $_REQUEST[$one_get_param];
|
||||
}
|
||||
}
|
||||
|
||||
@ -1425,7 +1427,7 @@ if (isset($_REQUEST['change_pw'])) {
|
||||
// similar logic in user_password.php
|
||||
$message = '';
|
||||
|
||||
if ($nopass == 0 && isset($pma_pw) && isset($pma_pw2)) {
|
||||
if (empty($_REQUEST['nopass']) && isset($pma_pw) && isset($pma_pw2)) {
|
||||
if ($pma_pw != $pma_pw2) {
|
||||
$message = PMA_Message::error(__('The passwords aren\'t the same!'));
|
||||
} elseif (empty($pma_pw) || empty($pma_pw2)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user