]> ruin.nu Git - ndwebbie.git/blobdiff - points.pl
nicer output
[ndwebbie.git] / points.pl
index 95845fa09a4e57ce665d24dbc0431e28c771372a..213fad9d84069e0e3f41d9dd26b229b37fe17e9a 100644 (file)
--- 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');