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);