mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Fixed the situations when the period is not init.
(cherry picked from commit 8d214486e6ab6aa6a3522995fde9abae6e235e28) Conflicts: pandora_console/include/ajax/module.php
This commit is contained in:
parent
4a144bf98e
commit
42d90c5793
@ -69,8 +69,16 @@ if ($get_module_detail) {
|
||||
|
||||
ui_include_time_picker();
|
||||
|
||||
$module_id = get_parameter ('id_module');
|
||||
$period = get_parameter ("period", 86400);
|
||||
$module_id = (int)get_parameter('id_module');
|
||||
$period = get_parameter("period", SECONDS_1DAY);
|
||||
if ($period === 'undefined') {
|
||||
$period = SECONDS_1DAY;
|
||||
}
|
||||
else {
|
||||
$period = (int)$period;
|
||||
}
|
||||
|
||||
|
||||
$group = agents_get_agentmodule_group ($module_id);
|
||||
$agentId = get_parameter("id_agent");
|
||||
$server_name = get_parameter('server_name');
|
||||
|
Loading…
x
Reference in New Issue
Block a user