Merge branch 'fix/fraguas' into 'develop'

minor fixes

See merge request artica/pandorafms!2216

Former-commit-id: 856ba09c711fa9199e06518c42a05e4ae942b938
This commit is contained in:
fbsanchez 2019-02-27 14:04:54 +01:00
commit 715bdbb04d
1 changed files with 1 additions and 1 deletions

View File

@ -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);