Minor fix (win. compat) ticket #3836

This commit is contained in:
fbsanchez 2016-06-15 17:23:27 +02:00
parent b40f0848e0
commit fc854370cc
1 changed files with 1 additions and 1 deletions

View File

@ -4677,7 +4677,7 @@ sub pandora_disable_autodisable_agents ($$) {
tagente.unknown_count>0 AND
tagente.modo=2';
my @agents_autodisabled = get_db_rows ($dbh, $sql);
return if !defined (@agents_autodisabled);
return if ($#agents_autodisabled < 0);
my $disable_agents = '';
foreach my $agent (@agents_autodisabled) {