diff options
Diffstat (limited to 'usr/local/www/diag_traceroute.php')
-rw-r--r-- | usr/local/www/diag_traceroute.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/diag_traceroute.php b/usr/local/www/diag_traceroute.php index 8cdbf93..7878ebe 100644 --- a/usr/local/www/diag_traceroute.php +++ b/usr/local/www/diag_traceroute.php @@ -116,13 +116,13 @@ if (!isset($do_traceroute)) { <select name="sourceip" class="formselect"> <option value="">Any</option> <?php $sourceips = get_possible_traffic_source_addresses(true); - foreach ($sourceips as $sip): + foreach ($sourceips as $sipvalue => $sipname): $selected = ""; - if (!link_interface_to_bridge($sip['value']) && ($sip['value'] == $sourceip)) + if (!link_interface_to_bridge($sipvalue) && ($sipvalue == $sourceip)) $selected = "selected=\"selected\""; ?> - <option value="<?=$sip['value'];?>" <?=$selected;?>> - <?=htmlspecialchars($sip['name']);?> + <option value="<?=$sipvalue;?>" <?=$selected;?>> + <?=htmlspecialchars($sipname);?> </option> <?php endforeach; ?> </select> |