mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch 'ent-12824-no-se-pueden-crear-agentes-manualmente-en-develop-775' into 'develop'
Ent 12824 No se pueden crear agentes manualmente en develop (775) See merge request artica/pandorafms!6899
This commit is contained in:
commit
67bbaa311c
@ -507,6 +507,7 @@ if (enterprise_installed()) {
|
|||||||
// Read configuration file.
|
// Read configuration file.
|
||||||
$files = config_agents_get_agent_config_filenames($id_agente);
|
$files = config_agents_get_agent_config_filenames($id_agente);
|
||||||
$file_name = $files['conf'];
|
$file_name = $files['conf'];
|
||||||
|
if (empty($file_name) === false) {
|
||||||
$agent_config = file_get_contents($file_name);
|
$agent_config = file_get_contents($file_name);
|
||||||
$encoding = 'UTF-8';
|
$encoding = 'UTF-8';
|
||||||
$agent_config_utf8 = mb_convert_encoding($agent_config, 'UTF-8', $encoding);
|
$agent_config_utf8 = mb_convert_encoding($agent_config, 'UTF-8', $encoding);
|
||||||
@ -516,6 +517,7 @@ if (enterprise_installed()) {
|
|||||||
|
|
||||||
$broker = str_contains($agent_config, '#broker active');
|
$broker = str_contains($agent_config, '#broker active');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($broker === false) {
|
if ($broker === false) {
|
||||||
$tableAgent->data['caption_interval'][0] = __('Interval');
|
$tableAgent->data['caption_interval'][0] = __('Interval');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user