minor error cleanup
This commit is contained in:
parent
97f246ae60
commit
fb4f4b4046
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue