MongoDB: removed iterator to array conversion

This commit is contained in:
Vladimír Kriška 2014-03-01 18:54:28 +01:00 committed by Jakub Vrana
parent c369236333
commit fd4344c866

View file

@ -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) {