mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +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);
|
||||
$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)
|
||||
->sort($sort)
|
||||
->limit(+$limit)
|
||||
->skip($page * $limit)
|
||||
));
|
||||
);
|
||||
}
|
||||
|
||||
function insert($table, $set) {
|
||||
|
Reference in New Issue
Block a user