diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-09 11:03:58 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-09 11:03:58 +0000 |
commit | ed65eb04ee1c296fa7abba90c98968d3b80f72f0 (patch) | |
tree | 3f721eb3bbfec301f52c431f8c518c93888f4074 /usr/local/www | |
parent | 429bf8de23644b5243fc075bbebefa389969bff8 (diff) | |
download | pfsense-ed65eb04ee1c296fa7abba90c98968d3b80f72f0.zip pfsense-ed65eb04ee1c296fa7abba90c98968d3b80f72f0.tar.gz |
Ticket #152. Hoepfully fix creation of empty vip entries in the config when deleting them. Probably more checks need to be done by consumers.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php index a88a217..6cd8879 100755 --- a/usr/local/www/firewall_virtual_ip.php +++ b/usr/local/www/firewall_virtual_ip.php @@ -112,6 +112,8 @@ if ($_GET['act'] == "del") { interface_vip_bring_down($a_vip[$_GET['id']]); unset($a_vip[$_GET['id']]); } + if (count($config['virtualip']['vip']) == 0) + unset($config['virtualip']['vip']); write_config(); mark_subsystem_dirty('vip'); header("Location: firewall_virtual_ip.php"); |