mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 23:57:29 +02:00
Don't create Driver with connection error
This commit is contained in:
@@ -164,9 +164,11 @@ if (isset($_GET["username"]) && is_string(get_password())) {
|
|||||||
}
|
}
|
||||||
check_invalid_login();
|
check_invalid_login();
|
||||||
$connection = connect($adminer->credentials());
|
$connection = connect($adminer->credentials());
|
||||||
$driver = new Driver($connection);
|
if (is_object($connection)) {
|
||||||
if ($adminer->operators === null) {
|
$driver = new Driver($connection);
|
||||||
$adminer->operators = $driver->operators;
|
if ($adminer->operators === null) {
|
||||||
|
$adminer->operators = $driver->operators;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user