diff options
author | Jo Michael <me@mynetx.net> | 2012-04-21 01:29:54 +0400 |
---|---|---|
committer | Jo Michael <me@mynetx.net> | 2012-04-21 01:29:54 +0400 |
commit | d4fdf5a6c4b79af845051ac8e2a1b21cca1052bc (patch) | |
tree | 6af645081266c85e5953a1d502c462018bbe3381 /user_password.php | |
parent | b324de61f36730b2f911d58e335dac470e8a2560 (diff) |
Fix undefined variable $cfg in user_password.php
Diffstat (limited to 'user_password.php')
-rw-r--r-- | user_password.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/user_password.php b/user_password.php index d7b8cc03e5..a9e21827b3 100644 --- a/user_password.php +++ b/user_password.php @@ -175,14 +175,14 @@ function PMA_changePassAuthType($_url_params, $password) * Changes password cookie if required * Duration = till the browser is closed for password (we don't want this to be saved) */ - if ($cfg['Server']['auth_type'] == 'cookie') { + if ($GLOBALS['cfg']['Server']['auth_type'] == 'cookie') { $GLOBALS['PMA_Config']->setCookie('pmaPass-' . $server, PMA_blowfish_encrypt($password, $GLOBALS['cfg']['blowfish_secret'])); } /** * For http auth. mode, the "back" link will also enforce new * authentication */ - if ($cfg['Server']['auth_type'] == 'http') { + if ($GLOBALS['cfg']['Server']['auth_type'] == 'http') { $_url_params['old_usr'] = 'relog'; } return $_url_params; |