Skip to content

Commit

Permalink
Let [iterate] tag return iterator object on empty body.
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Dec 16, 2010
1 parent 5eeea24 commit e25154d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/WellWell/Iterate.pm
Expand Up @@ -47,6 +47,10 @@ sub iterate {
die "Iterator not found\n";
}

if (! length($body)) {
return $iter;
}

while ($record = $iter->next()) {
# turn hash into array
my @keys = keys(%$record);
Expand Down

0 comments on commit e25154d

Please sign in to comment.