From cd589658f73cb862e1bd3e65e0f49c0baa0d1e68 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Fri, 16 Jan 2015 14:08:49 +0100 Subject: [PATCH] Fixed problem with create agent and not asigned ip address create record in taddress and ip is '' --- pandora_console/godmode/agentes/configurar_agente.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 09c3f0fbdc..fdcf57a1e4 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -208,7 +208,9 @@ if ($create_agent) { array('id_field' => $key,'id_agent' => $id_agente, 'description' => $value)); } // 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;