keep backwards compatibility when 'hour' and 'time' options were hard coded. #39

This commit is contained in:
Jordi Sanfeliu 2014-01-30 17:01:20 +01:00
parent a3458c61ba
commit bf4aa3e8ae
1 changed files with 2 additions and 2 deletions

View File

@ -563,8 +563,8 @@ while(1) {
# Email Reports
if(lc($config{emailreports}->{enabled}) eq "y") {
my $emailreports = $config{emailreports};
my $m = $emailreports->{minute};
my $h = $emailreports->{hour};
my $m = $emailreports->{minute} || 0;
my $h = $emailreports->{hour} || 0;
my $d = "emailreports";
undef($d) if(!grep {trim($_) eq $d} (@{$config{debug}}));