undefined variable cfg nopassword in mysqli
This commit is contained in:
@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2006-03-17 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* libraries/dbi/mysqli.dbi.lib.php: if $cfg['Servers'][$i]['nopassword']
|
||||||
|
is not defined (using an older config.inc.php), an error is displayed
|
||||||
|
when login fails
|
||||||
|
|
||||||
2006-03-17 Michal Čihař <michal@cihar.com>
|
2006-03-17 Michal Čihař <michal@cihar.com>
|
||||||
* scripts/setup.php: Allow empty socket (bug #1452142).
|
* scripts/setup.php: Allow empty socket (bug #1452142).
|
||||||
|
|
||||||
|
@@ -92,7 +92,7 @@ function PMA_DBI_connect($user, $password, $is_controluser = false)
|
|||||||
$return_value = @mysqli_real_connect($link, $GLOBALS['cfg']['Server']['host'], $user, $password, false, $server_port, $server_socket, $client_flags);
|
$return_value = @mysqli_real_connect($link, $GLOBALS['cfg']['Server']['host'], $user, $password, false, $server_port, $server_socket, $client_flags);
|
||||||
|
|
||||||
// Retry with empty password if we're allowed to
|
// Retry with empty password if we're allowed to
|
||||||
if ($return_value == false && $cfg['Server']['nopassword'] && !$is_controluser) {
|
if ($return_value == false && isset($cfg['Server']['nopassword']) && $cfg['Server']['nopassword'] && !$is_controluser) {
|
||||||
$return_value = @mysqli_real_connect($link, $GLOBALS['cfg']['Server']['host'], $user, '', false, $server_port, $server_socket, $client_flags);
|
$return_value = @mysqli_real_connect($link, $GLOBALS['cfg']['Server']['host'], $user, '', false, $server_port, $server_socket, $client_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user