From 2b5d58279d9d13f312b108022d0704dd74e1026f Mon Sep 17 00:00:00 2001 From: fermin831 Date: Mon, 30 May 2016 15:24:18 +0200 Subject: [PATCH] Fixed module selection in scheduled downtimes Tickets #3444 --- pandora_console/godmode/agentes/planned_downtime.editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/planned_downtime.editor.php b/pandora_console/godmode/agentes/planned_downtime.editor.php index 7dcd0c9f95..0687548eb7 100644 --- a/pandora_console/godmode/agentes/planned_downtime.editor.php +++ b/pandora_console/godmode/agentes/planned_downtime.editor.php @@ -101,7 +101,7 @@ if ($insert_downtime_agent === 1) { $agents = (array) get_parameter ('id_agents'); $module_names = (array) get_parameter ('module'); - $all_modules = (empty($module_names) || in_array(0, $module_names)); + $all_modules = (empty($module_names) || ($module_names[0] === "0")); // 'Is running' check $is_running = (bool) db_get_value ('executed', 'tplanned_downtime', 'id', $id_downtime);