#**************************************************************************/
use strict;
+use warnings FATAL => 'all';
$ND::TEMPLATE->param(TITLE => 'Top Members');
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');