mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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…
x
Reference in New Issue
Block a user