';
if ($agent['id_os'] == CLUSTER_OS_ID) {
- if (enterprise_installed()) {
- $cluster = PandoraFMS\Cluster::loadFromAgentId(
- $agent['id_agente']
- );
- $url = 'index.php?sec=reporting&sec2=';
- $url .= 'operation/cluster/cluster';
- $url = ui_get_full_url(
- $url.'&op=view&id='.$cluster->id()
- );
- $data[0] .= '
'.__('View').'';
- }
+ $cluster = PandoraFMS\Cluster::loadFromAgentId(
+ $agent['id_agente']
+ );
+ $url = 'index.php?sec=reporting&sec2=';
+ $url .= 'operation/cluster/cluster';
+ $url = ui_get_full_url(
+ $url.'&op=view&id='.$cluster->id()
+ );
+ $data[0] .= '
'.__('View').'';
} else {
$data[0] .= '
'.__('View').'';
}
@@ -865,17 +863,15 @@ foreach ($agents as $agent) {
$data[0] .= ' | ';
if ($agent['id_os'] == CLUSTER_OS_ID) {
- if (enterprise_installed()) {
- $cluster = PandoraFMS\Cluster::loadFromAgentId(
- $agent['id_agente']
- );
- $url = 'index.php?sec=reporting&sec2=';
- $url .= 'operation/cluster/cluster';
- $url = ui_get_full_url(
- $url.'&op=update&id='.$cluster->id()
- );
- $data[0] .= '
'.__('Edit').'';
- }
+ $cluster = PandoraFMS\Cluster::loadFromAgentId(
+ $agent['id_agente']
+ );
+ $url = 'index.php?sec=reporting&sec2=';
+ $url .= 'operation/cluster/cluster';
+ $url = ui_get_full_url(
+ $url.'&op=update&id='.$cluster->id()
+ );
+ $data[0] .= '
'.__('Edit').'';
} else {
$data[0] .= '
'.__('Edit').'';
}