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

Fix single driver non-MySQL compiled versions (regression from 150301ed)

This commit is contained in:
Jakub Vrana
2018-01-22 11:42:17 +01:00
parent a414896885
commit 3b4ce4a0b4

View File

@@ -171,10 +171,9 @@ if (isset($_GET["username"])) {
}
check_invalid_login();
$connection = connect();
$driver = new Min_Driver($connection);
}
$driver = new Min_Driver($connection);
if (!is_object($connection) || ($login = $adminer->login($_GET["username"], get_password())) !== true) {
auth_error((is_string($connection) ? h($connection) : (is_string($login) ? $login : lang('Invalid credentials.'))));
}