From 36b75b420311a766fd007dccaae6cd8c1d0750bd Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 1 Mar 2018 11:28:53 +0100 Subject: [PATCH] Use $adminer->operators --- adminer/drivers/mongo.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adminer/drivers/mongo.inc.php b/adminer/drivers/mongo.inc.php index c96ef47d..605deec8 100644 --- a/adminer/drivers/mongo.inc.php +++ b/adminer/drivers/mongo.inc.php @@ -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)) {