refactor events meta pandora_enterprise#9086
This commit is contained in:
parent
4ca78ec00c
commit
f39d502108
|
@ -2740,7 +2740,11 @@ function events_get_agent(
|
|||
'te.utimestamp'
|
||||
);
|
||||
|
||||
return $events['data'];
|
||||
if (is_metaconsole() === true) {
|
||||
$events = $events['data'];
|
||||
}
|
||||
|
||||
return $events;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -10454,14 +10454,14 @@ function reporting_get_module_detailed_event(
|
|||
$event['data'] = [];
|
||||
}
|
||||
|
||||
// total_events
|
||||
// Total events.
|
||||
if (isset($event['data'])) {
|
||||
$event['total_events'] = count($event['data']);
|
||||
} else {
|
||||
$event['total_events'] = 0;
|
||||
}
|
||||
|
||||
// graphs
|
||||
// Graphs.
|
||||
if (!empty($force_width_chart)) {
|
||||
$width = $force_width_chart;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue