Skip to content

Commit

Permalink
Fix operators init
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Feb 9, 2021
1 parent 7a89b5a commit 4742bde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions adminer/include/bootstrap.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function adminer_errors($errno, $errstr) {
include "../adminer/drivers/mongo.inc.php";
include "../adminer/drivers/elastic.inc.php";
include "./include/adminer.inc.php";
$adminer = (function_exists('adminer_object') ? adminer_object() : new Adminer);
include "../adminer/drivers/mysql.inc.php"; // must be included as last driver

$config = driver_config();
Expand All @@ -95,6 +96,9 @@ function adminer_errors($errno, $errstr) {
$functions = $config['functions'];
$grouping = $config['grouping'];
$edit_functions = $config['edit_functions'];
if ($adminer->operators === null) {
$adminer->operators = $operators;
}

define("SERVER", $_GET[DRIVER]); // read from pgsql=localhost
define("DB", $_GET["db"]); // for the sake of speed and size
Expand Down
2 changes: 0 additions & 2 deletions editor/include/adminer.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -658,5 +658,3 @@ function _foreignKeyOptions($table, $column, $value = null) {
}

}

$adminer = (function_exists('adminer_object') ? adminer_object() : new Adminer);

0 comments on commit 4742bde

Please sign in to comment.