mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
#11799 hide interval for broker agents
This commit is contained in:
parent
874bd04aa8
commit
cdd9af5108
@ -499,6 +499,9 @@ $tableAgent->data['primary_group'][0] .= ui_print_group_icon(
|
||||
'after_input_icon'
|
||||
);
|
||||
$tableAgent->data['primary_group'][0] .= '</span>';
|
||||
|
||||
$broker = false;
|
||||
if (enterprise_installed()) {
|
||||
// CHECK BROKER FOR SHOW INTERVAL.
|
||||
enterprise_include('include/functions_config_agents.php');
|
||||
// Read configuration file.
|
||||
@ -512,6 +515,7 @@ if ($agent_config_utf8 !== false) {
|
||||
}
|
||||
|
||||
$broker = str_contains($agent_config, '#broker active');
|
||||
}
|
||||
|
||||
if ($broker === false) {
|
||||
$tableAgent->data['caption_interval'][0] = __('Interval');
|
||||
|
Loading…
x
Reference in New Issue
Block a user