X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=resources.pl;h=12955667b3f172e21fdfb80038c161806cd04a42;hb=777101d1fc654a7d592bd77f8c6dccf281303f21;hp=363d25e16910d345b96f8dfcd3db98000fcc06ea;hpb=4633e480fd5e37e999b67c3e86a9386870343d2e;p=ndwebbie.git diff --git a/resources.pl b/resources.pl index 363d25e..1295566 100644 --- a/resources.pl +++ b/resources.pl @@ -19,8 +19,6 @@ use strict; use warnings FATAL => 'all'; -no warnings qw(uninitialized); -use POSIX; our $BODY; our $DBH; our $LOG; @@ -31,7 +29,7 @@ $ND::TEMPLATE->param(TITLE => 'Alliance Resources'); die "You don't have access" unless isHC(); my $order = "respplanet DESC"; -if (param('order') =~ /^(score|resources|respplanet|nscore|nscore2|nscore3)$/){ +if (defined param('order') && param('order') =~ /^(size|score|resources|respplanet|nscore|nscore2|nscore3)$/){ $order = "$1 DESC"; }