1
0
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:
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(); 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;
}
} }
} }