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:
Josh Sherman 2011-04-02 12:55:29 -04:00
parent 6bb94972b4
commit a2f2e98195

View file

@ -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
{