Added reset to the walk() to save from calling reset() when iterating a record set more than once (hey, that shit happens!)
This commit is contained in:
parent
6bb94972b4
commit
a2f2e98195
1 changed files with 4 additions and 0 deletions
|
@ -843,9 +843,13 @@ class Model extends Object
|
|||
*/
|
||||
public function walk()
|
||||
{
|
||||
// Checks if we should start iterating, solves off by one issues with next()
|
||||
if ($this->iterate == false)
|
||||
{
|
||||
$this->iterate = true;
|
||||
|
||||
// Resets the records, saves calling reset() when walking multiple times
|
||||
$this->reset();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue