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