X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=resources.pl;h=12955667b3f172e21fdfb80038c161806cd04a42;hb=30ff54d1d68e41a17bd8a7ff57e4104021e52ff5;hp=486cc13eab8cb48d21606e9a7d5d1a11832b89da;hpb=8bd21c625add06fed135d3ce99208c7a94b44882;p=ndwebbie.git diff --git a/resources.pl b/resources.pl index 486cc13..1295566 100644 --- a/resources.pl +++ b/resources.pl @@ -18,7 +18,7 @@ #**************************************************************************/ use strict; -use POSIX; +use warnings FATAL => 'all'; our $BODY; our $DBH; our $LOG; @@ -29,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"; }