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

MongoDB: Don't store unset values

This commit is contained in:
Jakub Vrana
2014-01-11 17:37:01 -08:00
parent 9824540ed8
commit ed13006512
3 changed files with 16 additions and 4 deletions

View File

@@ -116,6 +116,10 @@ if (isset($_GET["mongo"])) {
class Min_Driver extends Min_SQL {
public $primary = "_id";
function quote($value) {
return ($value === null ? $value : parent::quote($value));
}
function select($table, $select, $where, $group, $order, $limit, $page, $print = false) {
$select = ($select == array("*")
? array()