]> ruin.nu Git - ndwebbie.git/commitdiff
more fatal warnings and other cleanup
authorMichael Andreen <harv@ruin.nu>
Fri, 29 Dec 2006 17:51:15 +0000 (17:51 +0000)
committerMichael Andreen <harv@ruin.nu>
Fri, 29 Dec 2006 17:51:15 +0000 (17:51 +0000)
memberIntel.pl

index 6aa1e0ebb2771f715c10d0aa417e059c9ff9c061..964e0f84796ce57dae485b20f5f8623d4a561360 100644 (file)
@@ -19,7 +19,6 @@
 
 use strict;
 use warnings FATAL => 'all';
-no warnings qw(uninitialized);
 use POSIX;
 our $BODY;
 our $DBH;
@@ -31,10 +30,12 @@ $ND::TEMPLATE->param(TITLE => 'Member Intel');
 die "You don't have access" unless isHC();
 
 my $showticks = 'AND i.tick > tick()';
-if (param('show') eq 'all'){
-       $showticks = '';
-}elsif (param('show') =~ /^(\d+)$/){
-       $showticks = "AND (i.tick - i.eta) > (tick() - $1)";
+if (defined param('show')){
+       if (param('show') eq 'all'){
+               $showticks = '';
+       }elsif (param('show') =~ /^(\d+)$/){
+               $showticks = "AND (i.tick - i.eta) > (tick() - $1)";
+       }
 }