From: Michael Andreen Date: Fri, 29 Dec 2006 17:52:14 +0000 (+0000) Subject: more fatal warnings and other cleanup X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=16f1c5b0c31868b3fa089b7f642f297414b4d6d2;hp=0e140ba2661c1567646acec4d04fa1f4fec4cfc0;p=ndwebbie.git more fatal warnings and other cleanup --- diff --git a/resources.pl b/resources.pl index 363d25e..9599304 100644 --- a/resources.pl +++ b/resources.pl @@ -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"; }