improving kondurake patches

This commit is contained in:
skid 2016-08-09 17:33:37 +03:00
commit 08bdff8ba3
3 changed files with 3 additions and 4 deletions

View file

@ -63,7 +63,7 @@
<select class="vst-list" name="v_ip">
<?php
foreach ($ips as $ip => $value) {
$display_ip = htmlentities(empty($value['NAT']) ? $ip : "{$ip} → {$value['NAT']}");
$display_ip = htmlentities(empty($value['NAT']) ? $ip : "{$value['NAT']}");
$ip_selected = (!empty($v_ip) && $ip == $_POST['v_ip']) ? 'selected' : '';
echo "\t\t\t\t<option value=\"{$ip}\" {$ip_selected}>{$display_ip}</option>\n";
}