mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed module selection in scheduled downtimes Tickets #3444
This commit is contained in:
parent
39d54518eb
commit
2b5d58279d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user