Skip to content

Commit

Permalink
Don't stop iterating on a zero-length subentry.
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmoore authored and greensnark committed Jan 4, 2013
1 parent e537b35 commit 1811108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learndb-html.pl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ ($$$)
print "<ol>" if $has_multiple;
print htmlize($learndb{$key}, $has_multiple, ''), "\n";
my $i=1;
while($learndb{$key."[".++$i."]"})
while(exists $learndb{$key."[".++$i."]"})
{
my $text = $learndb{$key."[$i]"};
my $prefix = '';
Expand Down

0 comments on commit 1811108

Please sign in to comment.