mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed problem when return false instead of data, variable not change and enter a infinite bucle
This commit is contained in:
parent
a1e432ca91
commit
16c0233434
@ -105,7 +105,7 @@ if (!empty ($module)) {
|
|||||||
foreach ($module as $selected) {
|
foreach ($module as $selected) {
|
||||||
|
|
||||||
$output = "";
|
$output = "";
|
||||||
$work_period = 120000;
|
$work_period = SECONDS_1DAY;
|
||||||
if ($work_period > $period) {
|
if ($work_period > $period) {
|
||||||
$work_period = $period;
|
$work_period = $period;
|
||||||
}
|
}
|
||||||
@ -120,6 +120,7 @@ if (!empty ($module)) {
|
|||||||
$arr = array ();
|
$arr = array ();
|
||||||
$arr["data"] = reporting_get_agentmodule_data_average ($selected, $work_period, $work_end);
|
$arr["data"] = reporting_get_agentmodule_data_average ($selected, $work_period, $work_end);
|
||||||
if ($arr["data"] === false) {
|
if ($arr["data"] === false) {
|
||||||
|
$work_end = $work_end + $work_period;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$arr["module_name"] = modules_get_agentmodule_name ($selected);
|
$arr["module_name"] = modules_get_agentmodule_name ($selected);
|
||||||
|
@ -104,7 +104,7 @@ if (!empty ($module)) {
|
|||||||
foreach ($module as $selected) {
|
foreach ($module as $selected) {
|
||||||
|
|
||||||
$output = "";
|
$output = "";
|
||||||
$work_period = 120000;
|
$work_period = SECONDS_1DAY;
|
||||||
if ($work_period > $period) {
|
if ($work_period > $period) {
|
||||||
$work_period = $period;
|
$work_period = $period;
|
||||||
}
|
}
|
||||||
@ -119,6 +119,7 @@ if (!empty ($module)) {
|
|||||||
$arr = array ();
|
$arr = array ();
|
||||||
$arr["data"] = reporting_get_agentmodule_data_average ($selected, $work_period, $work_end);
|
$arr["data"] = reporting_get_agentmodule_data_average ($selected, $work_period, $work_end);
|
||||||
if ($arr["data"] === false) {
|
if ($arr["data"] === false) {
|
||||||
|
$work_end = $work_end + $work_period;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$arr["module_name"] = modules_get_agentmodule_name ($selected);
|
$arr["module_name"] = modules_get_agentmodule_name ($selected);
|
||||||
|
@ -137,6 +137,7 @@ if (!empty ($export_btn) && !empty ($module)) {
|
|||||||
reporting_get_agentmodule_data_average(
|
reporting_get_agentmodule_data_average(
|
||||||
$selected, $work_period, $work_end);
|
$selected, $work_period, $work_end);
|
||||||
if ($arr["data"] === false) {
|
if ($arr["data"] === false) {
|
||||||
|
$work_end = $work_end + $work_period;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$arr["module_name"] = modules_get_agentmodule_name ($selected);
|
$arr["module_name"] = modules_get_agentmodule_name ($selected);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user