Skip to content

Commit

Permalink
[2.0.0] Fix seek function
Browse files Browse the repository at this point in the history
  • Loading branch information
alkana committed May 12, 2014
1 parent 5c9bf86 commit 8af3f1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions phalcon/mvc/model/resultset.zep
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ abstract class Resultset
}

if typeof rows == "array" {
reset(rows);
for i in range(0, position) {
let i = 0;
while i < position {
next(rows);
let i++;
}
}
}
Expand Down

0 comments on commit 8af3f1e

Please sign in to comment.