]> ruin.nu Git - ndwebbie.git/commitdiff
more fatal warnings and other cleanup
authorMichael Andreen <harv@ruin.nu>
Fri, 29 Dec 2006 17:52:14 +0000 (17:52 +0000)
committerMichael Andreen <harv@ruin.nu>
Fri, 29 Dec 2006 17:52:14 +0000 (17:52 +0000)
resources.pl

index 363d25e16910d345b96f8dfcd3db98000fcc06ea..95993041c9ae9adc0403516cd26031453fd99944 100644 (file)
@@ -19,7 +19,6 @@
 
 use strict;
 use warnings FATAL => 'all';
-no warnings qw(uninitialized);
 use POSIX;
 our $BODY;
 our $DBH;
@@ -31,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";
 }