Skip to content

Commit

Permalink
Item13141: headerrows is documented as being undef when there are no …
Browse files Browse the repository at this point in the history
…header rows
  • Loading branch information
Comment committed Jan 12, 2015
1 parent b0830ba commit 5f88326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EditRowPlugin/lib/Foswiki/Plugins/EditRowPlugin/Table.pm
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ sub getEditor {
sub _getColsFromURPs {
my ( $this, $urps, $row ) = @_;
my $attrs = $this->{attrs};
my $headRows = $attrs->{headerrows};
my $headRows = $attrs->{headerrows} || 0;
my $count = scalar( @{ $this->{rows}->[$row]->{cols} } );
my $defs = scalar( @{ $this->{colTypes} } );
$count = $defs if $defs > $count;
Expand Down

0 comments on commit 5f88326

Please sign in to comment.