From: Michael Andreen Date: Fri, 29 Dec 2006 16:54:35 +0000 (+0000) Subject: more fatal warnings X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;ds=sidebyside;h=f211f8721574d525640b3b1abe99ab7453b3b04a;p=ndwebbie.git more fatal warnings --- diff --git a/points.pl b/points.pl index 95845fa..213fad9 100644 --- a/points.pl +++ b/points.pl @@ -19,7 +19,6 @@ use strict; use warnings FATAL => 'all'; -no warnings qw(uninitialized); $ND::TEMPLATE->param(TITLE => 'Top Members'); @@ -30,7 +29,7 @@ our $LOG; die "You don't have access" unless isMember(); my $type = "total"; -if (param('type') =~ /^(defense|attack|total|humor|scan|rank)$/){ +if (defined param('type') && param('type') =~ /^(defense|attack|total|humor|scan|rank)$/){ $type = $1; } $type .= '_points' unless ($type eq 'rank');