mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed a PHP warning (invalida foreach)
This commit is contained in:
parent
8bc9805288
commit
5783e56a2e
@ -576,16 +576,17 @@ function snmp_browser_print_container ($return = false, $width = '100%', $height
|
|||||||
enterprise_include_once ('include/functions_satellite.php');
|
enterprise_include_once ('include/functions_satellite.php');
|
||||||
|
|
||||||
$rows = get_proxy_servers();
|
$rows = get_proxy_servers();
|
||||||
foreach ($rows as $row) {
|
if ($rows !== false) {
|
||||||
if ($row['server_type'] != 13) {
|
foreach ($rows as $row) {
|
||||||
$s_type = " (Standard)";
|
if ($row['server_type'] != 13) {
|
||||||
|
$s_type = " (Standard)";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$s_type = " (Satellite)";
|
||||||
|
}
|
||||||
|
$servers_to_exec[$row['id_server']] = $row['name'] . $s_type;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
$s_type = " (Satellite)";
|
|
||||||
}
|
|
||||||
|
|
||||||
$servers_to_exec[$row['id_server']] = $row['name'] . $s_type;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$table->data[1][1] = '<strong>' . __('Server to execute') . '</strong> ';
|
$table->data[1][1] = '<strong>' . __('Server to execute') . '</strong> ';
|
||||||
$table->data[1][1] .= html_print_select($servers_to_exec, 'server_to_exec', '', '', '', '', true);
|
$table->data[1][1] .= html_print_select($servers_to_exec, 'server_to_exec', '', '', '', '', true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user