From fd4344c8668bd50c0ae1ea00b766247272358751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Kri=C5=A1ka?= Date: Sat, 1 Mar 2014 18:54:28 +0100 Subject: [PATCH] MongoDB: removed iterator to array conversion --- adminer/drivers/mongo.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adminer/drivers/mongo.inc.php b/adminer/drivers/mongo.inc.php index 89016112..7e4d481a 100644 --- a/adminer/drivers/mongo.inc.php +++ b/adminer/drivers/mongo.inc.php @@ -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) {