X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=points.pl;h=213fad9d84069e0e3f41d9dd26b229b37fe17e9a;hb=30ff54d1d68e41a17bd8a7ff57e4104021e52ff5;hp=95845fa09a4e57ce665d24dbc0431e28c771372a;hpb=354c2fb813a139fb08476b6d0e7f30308091038a;p=ndwebbie.git 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');