From 4d73c6ca7c3c8889b267fe79e711afedc6260cc0 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 23 Sep 2015 13:08:36 +0200 Subject: [PATCH] Fixed function, and add condition if agent is not init. Tiquet: #2804 --- pandora_console/include/functions_modules.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index f8a80a829a..46e68325b4 100644 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -26,6 +26,9 @@ 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) + return true; + if ($row['estado'] == AGENT_MODULE_STATUS_NO_DATA || $row['estado'] == AGENT_MODULE_STATUS_NOT_INIT ) return true; else