X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=points.pl;h=e1a18863d1ed65ff4527f05254c1142083209a67;hb=1cb9216d9579051c654e339ed88848f5a45ef12c;hp=6d33689f37d6fef5cd88b7e24f8211082ff696a5;hpb=8bd21c625add06fed135d3ce99208c7a94b44882;p=ndwebbie.git diff --git a/points.pl b/points.pl index 6d33689..e1a1886 100644 --- a/points.pl +++ b/points.pl @@ -18,17 +18,17 @@ #**************************************************************************/ use strict; +use warnings FATAL => 'all'; $ND::TEMPLATE->param(TITLE => 'Top Members'); our $BODY; our $DBH; -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');