From 0b18397095782751b4162bf3c79e3bcd4c188d28 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 15 Jan 2024 09:19:37 +0100 Subject: [PATCH] #12503 fixed empty all_ip in create agent --- pandora_console/godmode/agentes/agent_manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index 09c6ea3939..d0c255e25e 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -1513,7 +1513,7 @@ ui_require_jquery_file('bgiframe'); function check_unique_ip() { const direccion = $('#text-direccion').val(); let ip_all = ; - if (!ip_all) { + if (ip_all) { ip_all = Object.keys(ip_all); } $.ajax({