Permalink
Browse files

MongoDB: removed iterator to array conversion

  • Loading branch information...
1 parent c369236 commit fd4344c8668bd50c0ae1ea00b766247272358751 @ujovlado ujovlado committed with Mar 1, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 adminer/drivers/mongo.inc.php
View
4 adminer/drivers/mongo.inc.php
@@ -130,12 +130,12 @@ function select($table, $select, $where, $group, $order = array(), $limit = 1, $
$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) {

0 comments on commit fd4344c

Please sign in to comment.