From ae36c2667686a29e27d69ff89c41d77ecf132697 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 23 Sep 2015 12:41:59 +0200 Subject: [PATCH] Fixed function, and add condition if agent is not init. Tiquet: #2804 (cherry picked from commit df6b3efe1ac74dfe33cedd70cd425c3028997301) --- pandora_console/include/functions_modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index 4cf59bcd4a..f8a80a829a 100644 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -26,7 +26,7 @@ include_once($config['homedir'] . '/include/functions_tags.php'); function modules_is_not_init($id_agent_module) { $row = db_get_row('tagente_estado', 'id_agente_modulo', $id_agent_module); - if ($row['estado'] == AGENT_MODULE_STATUS_NO_DATA) + if ($row['estado'] == AGENT_MODULE_STATUS_NO_DATA || $row['estado'] == AGENT_MODULE_STATUS_NOT_INIT ) return true; else return false;