mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed problem with create agent and not asigned ip address
create record in taddress and ip is '' (cherry picked from commit 5d0bc28dc8426b43220cee0099c320979473cf91)
This commit is contained in:
parent
a36b399b1f
commit
070e9f6e00
@ -208,7 +208,9 @@ if ($create_agent) {
|
|||||||
array('id_field' => $key,'id_agent' => $id_agente, 'description' => $value));
|
array('id_field' => $key,'id_agent' => $id_agente, 'description' => $value));
|
||||||
}
|
}
|
||||||
// Create address for this agent in taddress
|
// Create address for this agent in taddress
|
||||||
agents_add_address ($id_agente, $direccion_agente);
|
if ( $direccion_agente != ''){
|
||||||
|
agents_add_address ($id_agente, $direccion_agente);
|
||||||
|
}
|
||||||
|
|
||||||
$agent_created_ok = true;
|
$agent_created_ok = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user