mirror of
https://github.com/vrana/adminer.git
synced 2025-08-31 18:11:52 +02:00
Handle the situation when no driver is found
This can happen if Adminer for MySQL with existing login is replaced by Adminer for PostgreSQL.
This commit is contained in:
@@ -214,6 +214,12 @@ function auth_error($error) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($_GET["username"]) && !DRIVER) {
|
||||||
|
page_header(lang('No driver'), lang('Database driver not found.'), false);
|
||||||
|
page_footer("auth");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($_GET["username"]) && !class_exists("Min_DB")) {
|
if (isset($_GET["username"]) && !class_exists("Min_DB")) {
|
||||||
unset($_SESSION["pwds"][DRIVER]);
|
unset($_SESSION["pwds"][DRIVER]);
|
||||||
unset_permanent();
|
unset_permanent();
|
||||||
|
Reference in New Issue
Block a user