Skip to content

Commit

Permalink
Item2130: Check that initsort is defined before testing it with a pat…
Browse files Browse the repository at this point in the history
…tern match

git-svn-id: http://svn.foswiki.org/trunk@5090 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelTempest authored and MichaelTempest committed Sep 22, 2009
1 parent 8ee8559 commit 409d391
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TablePlugin/lib/Foswiki/Plugins/TablePlugin/Core.pm
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ sub _parseAttributes {
my $sort = Foswiki::Func::isTrue( $inParams->{sort} || 'on' );
_storeAttribute( 'sort', $sort, $inCollection );
_storeAttribute( 'initSort', $inParams->{initsort}, $inCollection )
if $inParams->{initsort} =~ /\s*[0-9]+\s*/;
if defined( $inParams->{initsort} )
and $inParams->{initsort} =~ /\s*[0-9]+\s*/;
_storeAttribute( 'sortAllTables', $sort, $inCollection );
if ( $inParams->{initdirection} ) {
_storeAttribute( 'initDirection', $SORT_DIRECTION->{'ASCENDING'},
Expand Down

0 comments on commit 409d391

Please sign in to comment.