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

Plugins: Move operators to a method

This commit is contained in:
Jakub Vrana
2025-03-28 14:22:42 +01:00
parent c7140c2158
commit dc38a7ded3
5 changed files with 21 additions and 13 deletions

View File

@@ -185,9 +185,6 @@ if (isset($_GET["username"]) && is_string(get_password())) {
$connection = connect($adminer->credentials());
if (is_object($connection)) {
$driver = new Driver($connection);
if ($adminer->operators === null) {
$adminer->operators = $driver->operators;
}
if ($connection->flavor) {
save_settings(array("vendor-" . DRIVER . "-" . SERVER => $drivers[DRIVER]));
}