Use $adminer->operators

This commit is contained in:
Jakub Vrana 2018-03-01 11:28:53 +01:00
parent 4a24ee7672
commit 36b75b4203

View file

@ -516,7 +516,7 @@ if (isset($_GET["mongo"])) {
}
function where_to_query($whereAnd = array(), $whereOr = array()) {
global $operators;
global $adminer;
$data = array();
foreach (array('and' => $whereAnd, 'or' => $whereOr) as $type => $where) {
if (is_array($where)) {
@ -528,7 +528,7 @@ if (isset($_GET["mongo"])) {
$class = 'MongoDB\BSON\ObjectID';
$val = new $class($val);
}
if (!in_array($op, $operators)) {
if (!in_array($op, $adminer->operators)) {
continue;
}
if (preg_match('~^\(f\)(.+)~', $op, $match)) {