diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-01-15 20:17:46 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-01-15 20:17:46 +0100 |
commit | 89f171b052fbe72aed654d2a1c3d5a24e9bf9902 (patch) | |
tree | 88099045c1b9056bd469f156c28e0015c811980e /usr/local/www/services_snmp.php | |
parent | 98bf4991dc31f97fc7315a6b8aba433de9d39cea (diff) | |
download | pfsense-89f171b052fbe72aed654d2a1c3d5a24e9bf9902.zip pfsense-89f171b052fbe72aed654d2a1c3d5a24e9bf9902.tar.gz |
Ticket #3997, teach code to track carp through uniqids(). Missing carp GUI changes and upgrade code
Diffstat (limited to 'usr/local/www/services_snmp.php')
-rw-r--r-- | usr/local/www/services_snmp.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/services_snmp.php b/usr/local/www/services_snmp.php index 3aef6a0..cfdd958 100644 --- a/usr/local/www/services_snmp.php +++ b/usr/local/www/services_snmp.php @@ -420,15 +420,17 @@ function enable_change(whichone) { <select name="bindip" class="formselect"> <option value="">All</option> <?php $listenips = get_possible_listen_ips(); - foreach ($listenips as $lip): + foreach ($listenips as $lip => $ldescr): $selected = ""; - if ($lip['value'] == $pconfig['bindip']) + if ($lip == $pconfig['bindip']) $selected = "selected=\"selected\""; ?> - <option value="<?=$lip['value'];?>" <?=$selected;?>> + <option value="<?=$ldescr;?>" <?=$selected;?>> <?=htmlspecialchars($lip['name']);?> </option> - <?php endforeach; ?> + <?php endforeach; + unset($listenips); + ?> </select> </td> </tr> |