From b01061fea105a88c468401356876496ad28fd89d Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 19 Jan 2022 11:48:20 +0100 Subject: [PATCH] Fixed module type --- pandora_console/include/functions_modules.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index 4f27b17896..7220b0aab4 100755 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -3231,9 +3231,10 @@ function modules_get_first_date($id_agent_module, $datelimit=0) { global $config; - // check datatype string or normal + // Check datatype string or normal. $table = 'tagente_datos'; - $module_type_str = modules_get_agentmodule_type($id_agent_module); + $module_type = modules_get_agentmodule_type($id_agent_module); + $module_type_str = modules_get_type_name($module_type); if (strstr($module_type_str, 'string') !== false) { $table = 'tagente_datos_string'; }