]> ruin.nu Git - ndwebbie.git/blobdiff - resources.pl
more fatal warnings and other cleanup
[ndwebbie.git] / resources.pl
index 486cc13eab8cb48d21606e9a7d5d1a11832b89da..95993041c9ae9adc0403516cd26031453fd99944 100644 (file)
@@ -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";
 }