Fixed a PHP warning (invalida foreach)

This commit is contained in:
fermin831 2018-05-03 12:57:48 +02:00
parent 8bc9805288
commit 5783e56a2e
1 changed files with 10 additions and 9 deletions

View File

@ -576,6 +576,7 @@ function snmp_browser_print_container ($return = false, $width = '100%', $height
enterprise_include_once ('include/functions_satellite.php');
$rows = get_proxy_servers();
if ($rows !== false) {
foreach ($rows as $row) {
if ($row['server_type'] != 13) {
$s_type = " (Standard)";
@ -583,10 +584,10 @@ function snmp_browser_print_container ($return = false, $width = '100%', $height
else {
$s_type = " (Satellite)";
}
$servers_to_exec[$row['id_server']] = $row['name'] . $s_type;
}
}
}
$table->data[1][1] = '<strong>' . __('Server to execute') . '</strong> &nbsp;&nbsp;';
$table->data[1][1] .= html_print_select($servers_to_exec, 'server_to_exec', '', '', '', '', true);