diff --git a/monitorix b/monitorix index 42b1f78..3fd366a 100755 --- a/monitorix +++ b/monitorix @@ -563,12 +563,12 @@ while(1) { # Email Reports if(lc($config{emailreports}->{enabled}) eq "y") { my $emailreports = $config{emailreports}; - my $email_m = $emailreports->{minute}; - my $email_h = $emailreports->{hour}; + my $m = $emailreports->{minute}; + my $h = $emailreports->{hour}; my $d = "emailreports"; undef($d) if(!grep {trim($_) eq $d} (@{$config{debug}})); - if($min == $email_m && $hour == $email_h) { + if($min == $m && $hour == $h) { eval "use emailreports qw(emailreports_send)"; if($@) {