mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 11:34:10 +02:00
MongoDB: removed iterator to array conversion
This commit is contained in:
committed by
Jakub Vrana
parent
c369236333
commit
fd4344c866
@@ -130,12 +130,12 @@ if (isset($_GET["mongo"])) {
|
|||||||
$val = preg_replace('~ DESC$~', '', $val, 1, $count);
|
$val = preg_replace('~ DESC$~', '', $val, 1, $count);
|
||||||
$sort[$val] = ($count ? -1 : 1);
|
$sort[$val] = ($count ? -1 : 1);
|
||||||
}
|
}
|
||||||
return new Min_Result(iterator_to_array($this->_conn->_db->selectCollection($table)
|
return new Min_Result($this->_conn->_db->selectCollection($table)
|
||||||
->find(array(), $select)
|
->find(array(), $select)
|
||||||
->sort($sort)
|
->sort($sort)
|
||||||
->limit(+$limit)
|
->limit(+$limit)
|
||||||
->skip($page * $limit)
|
->skip($page * $limit)
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function insert($table, $set) {
|
function insert($table, $set) {
|
||||||
|
Reference in New Issue
Block a user