From 69c537f9d189a3308ebda9e3ddfb2b8773c83ad8 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Wed, 28 May 2014 11:46:50 +0000 Subject: [PATCH] 2014-05-28 Sergio Martin * godmode/agentes/configurar_agente.php: Fixed field that wasn't saved on DB in WMI modules for ticket #794 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10028 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/agentes/configurar_agente.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 6edd82a1a0..035b24b24a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-05-28 Sergio Martin + + * godmode/agentes/configurar_agente.php: Fixed field that + wasn't saved on DB in WMI modules for ticket #794 + 2014-05-27 Alejandro Gallardo * extensions/files_repo.php: Fixed a weird error when diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 7edabfa4f8..8f0b28333f 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -806,8 +806,8 @@ if ($update_module || $create_module) { $tcp_rcv = (string) get_parameter ('tcp_rcv'); $tcp_port = (int) get_parameter ('tcp_port'); // Correction in order to not insert 0 as port - $is_port_empty = get_parameter ('tcp_port'); - if (empty($is_port_empty)) + $is_port_empty = get_parameter ('tcp_port', ''); + if ($is_port_empty === '') $tcp_port = NULL; $configuration_data = (string) get_parameter ('configuration_data'); $old_configuration_data = (string) get_parameter ('old_configuration_data');