X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=points.pl;h=e1a18863d1ed65ff4527f05254c1142083209a67;hb=77e873677329b64c68bf3e3dc84f229eeafb1c83;hp=95845fa09a4e57ce665d24dbc0431e28c771372a;hpb=354c2fb813a139fb08476b6d0e7f30308091038a;p=ndwebbie.git diff --git a/points.pl b/points.pl index 95845fa..e1a1886 100644 --- a/points.pl +++ b/points.pl @@ -19,18 +19,16 @@ use strict; use warnings FATAL => 'all'; -no warnings qw(uninitialized); $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');