minor error cleanup

This commit is contained in:
fbsanchez 2019-10-10 17:31:57 +02:00
parent 97f246ae60
commit fb4f4b4046
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ sub PandoraFMS::Recon::Base::create_agents($$) {
return undef;
}
if ($agent->{'address'} ne '') {
if (defined($agent->{'address'}) && $agent->{'address'} ne '') {
pandora_add_agent_address(
$pa_config, $agent_id, $agent->{'agent_name'},
$agent->{'address'}, $dbh