Fixed problem with create agent and not asigned ip address

create record in taddress and ip is ''

(cherry picked from commit 5d0bc28dc8)
This commit is contained in:
m-lopez-f 2015-01-16 14:08:49 +01:00
parent a36b399b1f
commit 070e9f6e00
1 changed files with 3 additions and 1 deletions

View File

@ -208,7 +208,9 @@ if ($create_agent) {
array('id_field' => $key,'id_agent' => $id_agente, 'description' => $value));
}
// Create address for this agent in taddress
if ( $direccion_agente != ''){
agents_add_address ($id_agente, $direccion_agente);
}
$agent_created_ok = true;