1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Don't create Driver with connection error

This commit is contained in:
Jakub Vrana
2025-03-08 05:37:01 +01:00
parent c19e6f27f1
commit ab0f07dd81

View File

@@ -164,9 +164,11 @@ if (isset($_GET["username"]) && is_string(get_password())) {
}
check_invalid_login();
$connection = connect($adminer->credentials());
$driver = new Driver($connection);
if ($adminer->operators === null) {
$adminer->operators = $driver->operators;
if (is_object($connection)) {
$driver = new Driver($connection);
if ($adminer->operators === null) {
$adminer->operators = $driver->operators;
}
}
}