From 7b22caaea8182f094ff5ebde228972d9efa30b76 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Thu, 2 Aug 2018 13:41:56 +0200 Subject: [PATCH] Fixed warning --- pandora_console/include/functions_agents.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index a5e61f6d07..c80f1a634a 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -1739,7 +1739,8 @@ function agents_get_status($id_agent = 0, $noACLs = false) { // Get all non disabled modules of the agent $all_modules = db_get_all_rows_filter('tagente_modulo', $filter_modules, 'id_agente_modulo'); - + if ($all_modules === false) $all_modules = array(); + $result_modules = array(); // Skip non init modules foreach ($all_modules as $module) {