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

Vendor display: Do not overwrite PostgreSQL by MySQL at the same server

This commit is contained in:
Jakub Vrana
2025-03-18 16:30:23 +01:00
parent 751405e006
commit eeb78d7e48
2 changed files with 2 additions and 2 deletions

View File

@@ -1001,7 +1001,7 @@ class Adminer {
$output = "";
foreach ((array) $_SESSION["pwds"] as $vendor => $servers) {
foreach ($servers as $server => $usernames) {
$name = h(get_setting("vendor-$server") ?: $drivers[$vendor]);
$name = h(get_setting("vendor-$vendor-$server") ?: $drivers[$vendor]);
foreach ($usernames as $username => $password) {
if ($password !== null) {
$dbs = $_SESSION["db"][$vendor][$server][$username];

View File

@@ -188,7 +188,7 @@ if (isset($_GET["username"]) && is_string(get_password())) {
$adminer->operators = $driver->operators;
}
if (isset($connection->maria) || $connection->cockroach) {
save_settings(array("vendor-" . SERVER => $drivers[DRIVER]));
save_settings(array("vendor-" . DRIVER . "-" . SERVER => $drivers[DRIVER]));
}
}
}