Skip to content

Commit

Permalink
Item14213: fix uninitialized value warning; dead_cols is usually not …
Browse files Browse the repository at this point in the history
…defined
  • Loading branch information
fschlich committed Nov 8, 2016
1 parent 219f796 commit 34b820d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -102,7 +102,7 @@ sub render {
0 + ( ( $tattrs->{initdirection} || 'down' ) eq 'up' );
$sort->{col} =
$tattrs->{initsort}
? $tattrs->{initsort} + $table->{dead_cols}
? $tattrs->{initsort} + ( $table->{dead_cols} || 0 )
: 0;
$attrs->{"data-sort"} = $json->encode($sort);
}
Expand Down

0 comments on commit 34b820d

Please sign in to comment.