SNMP filters mesage empty

This commit is contained in:
Jonathan 2023-02-28 08:29:29 +01:00
parent 6642f2e6d3
commit d1ace9d560
1 changed files with 31 additions and 27 deletions

View File

@ -314,6 +314,7 @@ if ($edit_filter > -2) {
$table->size[2] = '65px';
$table->align[2] = 'center';
if (empty($aglomerate_result) === false) {
foreach ($aglomerate_result as $ind => $row) {
if ($ind == 0) {
foreach ($row as $r) {
@ -346,6 +347,9 @@ if ($edit_filter > -2) {
array_push($table->data, $data);
}
}
} else {
ui_print_info_message(['no_close' => true, 'message' => __('There are no SNMP Filters defined yet.') ]);
}
if (!empty($table->data)) {
html_print_table($table);