Revert "Remove unecessary variable"

This var is used below

This reverts commit b91d0be386.
This commit is contained in:
Renato Botelho 2013-07-30 15:50:35 -03:00
parent 5db98b2123
commit ba47a8900e

View File

@ -110,11 +110,13 @@ if ($_GET['act'] == "del") {
if (is_ipaddrv6($a_vip[$_GET['id']]['subnet'])) {
$is_ipv6 = true;
$subnet = gen_subnetv6($a_vip[$_GET['id']]['subnet'], $a_vip[$_GET['id']]['subnet_bits']);
$if_subnet = gen_subnetv6(get_interface_ipv6($a_vip[$_GET['id']]['interface']), get_interface_subnetv6($a_vip[$_GET['id']]['interface']));
$if_subnet_bits = get_interface_subnetv6($a_vip[$_GET['id']]['interface']);
$if_subnet = gen_subnetv6(get_interface_ipv6($a_vip[$_GET['id']]['interface']), $if_subnet_bits);
} else {
$is_ipv6 = false;
$subnet = gen_subnet($a_vip[$_GET['id']]['subnet'], $a_vip[$_GET['id']]['subnet_bits']);
$if_subnet = gen_subnet(get_interface_ip($a_vip[$_GET['id']]['interface']), get_interface_subnet($a_vip[$_GET['id']]['interface']));
$if_subnet_bits = get_interface_subnet($a_vip[$_GET['id']]['interface']);
$if_subnet = gen_subnet(get_interface_ip($a_vip[$_GET['id']]['interface']), $if_subnet_bits);
}
$subnet .= "/" . $a_vip[$_GET['id']]['subnet_bits'];