diff --git a/pandora_server/lib/PandoraFMS/Recon/Base.pm b/pandora_server/lib/PandoraFMS/Recon/Base.pm index ec3eb0d853..45f5d87a27 100644 --- a/pandora_server/lib/PandoraFMS/Recon/Base.pm +++ b/pandora_server/lib/PandoraFMS/Recon/Base.pm @@ -216,7 +216,7 @@ sub new { $self->{'snmp_security_level'} = ''; # Disable SNMP scans if no community was given. - if (scalar(@{$self->{'communities'}}) == 0) { + if (ref($self->{'communities'}) ne "ARRAY" || scalar(@{$self->{'communities'}}) == 0) { $self->{'snmp_enabled'} = 0; $self->call('message', "There is not any SNMP community configured.", 5);