my $new_entry_remark = $cgiparams{'IGNORE_ENTRY_REMARK'};
# Read-in ignoredfile.
- &General::readhasharray($IDS::ignored_file, \%ignored);
+ &General::readhasharray($IDS::ignored_file, \%ignored) if (-e $IDS::ignored_file);
# Check if we should edit an existing entry and got an ID.
if (($cgiparams{'WHITELIST'} eq $Lang::tr{'update'}) && ($cgiparams{'ID'})) {
undef($cgiparams{'ID'});
# Read-in ignoredfile.
- &General::readhasharray($IDS::ignored_file, \%ignored);
+ &General::readhasharray($IDS::ignored_file, \%ignored) if (-e $IDS::ignored_file);
# Grab the configured status of the corresponding entry.
my $status = $ignored{$id}[2];
my %ignored = ();
# Read-in ignoredfile.
- &General::readhasharray($IDS::ignored_file, \%ignored);
+ &General::readhasharray($IDS::ignored_file, \%ignored) if (-e $IDS::ignored_file);
# Drop entry from the hash.
delete($ignored{$cgiparams{'ID'}});
}
# Read-in ignored hosts.
- &General::readhasharray("$IDS::settingsdir/ignored", \%ignored);
+ &General::readhasharray("$IDS::ignored_file", \%ignored) if (-e $IDS::ignored_file);
$checked{'ENABLE_IDS'}{'off'} = '';
$checked{'ENABLE_IDS'}{'on'} = '';