Merge branch 'ent-6926-Vista-de-servidores-no-muestra-masters' into 'develop'
Ent 6926 vista de servidores no muestra masters See merge request artica/pandorafms!3809
This commit is contained in:
commit
8281d98f83
|
@ -79,6 +79,13 @@ if (check_acl($config['id_user'], 0, 'PM')) {
|
||||||
|
|
||||||
$table->data = [];
|
$table->data = [];
|
||||||
$names_servers = [];
|
$names_servers = [];
|
||||||
|
$master = 1;
|
||||||
|
// The server with the highest number in master, will be the real master.
|
||||||
|
foreach ($servers as $server) {
|
||||||
|
if ($server['master'] > $master) {
|
||||||
|
$master = $server['master'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($servers as $server) {
|
foreach ($servers as $server) {
|
||||||
$data = [];
|
$data = [];
|
||||||
|
@ -109,7 +116,7 @@ foreach ($servers as $server) {
|
||||||
|
|
||||||
// Type
|
// Type
|
||||||
$data[2] = '<span style="white-space:nowrap;">'.$server['img'];
|
$data[2] = '<span style="white-space:nowrap;">'.$server['img'];
|
||||||
if ($server['master'] == 1) {
|
if ($server['master'] == $master) {
|
||||||
$data[2] .= ui_print_help_tip(__('This is a master server'), true);
|
$data[2] .= ui_print_help_tip(__('This is a master server'), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue