]> git.joonet.de Git - adminer.git/commitdiff
MongoDB: removed iterator to array conversion
authorVladimír Kriška <ujovlado@gmail.com>
Sat, 1 Mar 2014 17:54:28 +0000 (18:54 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 1 Mar 2014 20:03:58 +0000 (12:03 -0800)
adminer/drivers/mongo.inc.php

index 89016112b14f781e8617f857155290ffc4e8fba0..7e4d481a5d4d5ffa948a1676a48ee8bc0203e1c3 100644 (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) {