Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo Michael <me@mynetx.net>2012-04-21 01:29:54 +0400
committerJo Michael <me@mynetx.net>2012-04-21 01:29:54 +0400
commitd4fdf5a6c4b79af845051ac8e2a1b21cca1052bc (patch)
tree6af645081266c85e5953a1d502c462018bbe3381 /user_password.php
parentb324de61f36730b2f911d58e335dac470e8a2560 (diff)
Fix undefined variable $cfg in user_password.php
Diffstat (limited to 'user_password.php')
-rw-r--r--user_password.php4
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;