mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
fix filter bug
This commit is contained in:
parent
962111936e
commit
160514cfbe
@ -6472,7 +6472,12 @@ function event_print_graph(
|
|||||||
$color[] = '#82b92f';
|
$color[] = '#82b92f';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$interval_length = (int) ($period / $num_intervals);
|
$interval_length = 0;
|
||||||
|
|
||||||
|
if ($num_intervals > 0) {
|
||||||
|
$interval_length = (int) ($period / $num_intervals);
|
||||||
|
}
|
||||||
|
|
||||||
$intervals = [];
|
$intervals = [];
|
||||||
$intervals[0] = $start_utimestamp;
|
$intervals[0] = $start_utimestamp;
|
||||||
for ($i = 0; $i < $num_intervals; $i++) {
|
for ($i = 0; $i < $num_intervals; $i++) {
|
||||||
|
@ -1234,7 +1234,7 @@ if (is_ajax() === true) {
|
|||||||
|
|
||||||
$data = array_values(
|
$data = array_values(
|
||||||
array_filter(
|
array_filter(
|
||||||
$data,
|
($data ?? []),
|
||||||
function ($item) {
|
function ($item) {
|
||||||
return (bool) (array) $item;
|
return (bool) (array) $item;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user