]> ruin.nu Git - ndwebbie.git/blobdiff - points.pl
minor bugfix
[ndwebbie.git] / points.pl
index 6d33689f37d6fef5cd88b7e24f8211082ff696a5..e1a18863d1ed65ff4527f05254c1142083209a67 100644 (file)
--- a/points.pl
+++ b/points.pl
 #**************************************************************************/
 
 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');