Skip to content

Commit f1ee99e

Browse files
committed
Clean up result array
1 parent 1ec1e2a commit f1ee99e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Jenssegers/Mongodb/Builder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function getFresh($columns = array('*'))
153153
if ($this->limit) $cursor->limit($this->limit);
154154

155155
// Return results
156-
return iterator_to_array($cursor);
156+
return array_values(iterator_to_array($cursor));
157157
}
158158
}
159159

0 commit comments

Comments
 (0)