mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
minor warning based on different configurations
This commit is contained in:
parent
f7e2023253
commit
d85b0141e4
@ -65,7 +65,8 @@ use constant {
|
||||
sub new ($$$$$$) {
|
||||
my ($class, $config, $dbh) = @_;
|
||||
|
||||
return undef unless $config->{'reconserver'} == 1 || $config->{'discoveryserver'} == 1;
|
||||
return undef unless (defined($config->{'reconserver'}) && $config->{'reconserver'} == 1)
|
||||
|| (defined($config->{'discoveryserver'}) && $config->{'discoveryserver'} == 1);
|
||||
|
||||
if (! -e $config->{'nmap'}) {
|
||||
logger ($config, ' [E] ' . $config->{'nmap'} . " needed by " . $config->{'rb_product_name'} . " Discovery Server not found.", 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user