1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 00:28:34 +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,10 +164,12 @@ if (isset($_GET["username"]) && is_string(get_password())) {
} }
check_invalid_login(); check_invalid_login();
$connection = connect($adminer->credentials()); $connection = connect($adminer->credentials());
if (is_object($connection)) {
$driver = new Driver($connection); $driver = new Driver($connection);
if ($adminer->operators === null) { if ($adminer->operators === null) {
$adminer->operators = $driver->operators; $adminer->operators = $driver->operators;
} }
}
} }
$login = null; $login = null;