Merge remote-tracking branch 'origin/develop' into ent-EDF
This commit is contained in:
commit
307eabc7b9
|
@ -4092,6 +4092,18 @@ function mask2cidr($mask)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* convert the cidr prefix to subnet mask
|
||||
*
|
||||
* @param int cidr prefix
|
||||
* @return string subnet mask
|
||||
*/
|
||||
function cidr2mask($int)
|
||||
{
|
||||
return long2ip(-1 << (32 - (int) $int));
|
||||
}
|
||||
|
||||
|
||||
function get_help_info($section_name)
|
||||
{
|
||||
global $config;
|
||||
|
|
|
@ -825,7 +825,15 @@ $table_events = '<div class="white_table_graph" id="table_events">
|
|||
|
||||
$agent_contact = html_print_table($table_contact, true);
|
||||
|
||||
$agent_info = empty($table_data->data) ? '' : html_print_table($table_data, true);
|
||||
if (empty($table_data->data)) {
|
||||
$agent_info = '';
|
||||
} else {
|
||||
if (count($table_data->data) === 1 && $config['activate_gis'] && $dataPositionAgent === false) {
|
||||
$agent_info = '';
|
||||
} else {
|
||||
$agent_info = html_print_table($table_data, true);
|
||||
}
|
||||
}
|
||||
|
||||
$agent_incidents = !isset($table_incident) ? '' : html_print_table($table_incident, true);
|
||||
|
||||
|
|
Loading…
Reference in New Issue