diff options
author | Ermal <eri@pfsense.org> | 2010-04-27 15:26:42 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-04-27 15:26:42 +0000 |
commit | 0172c431c1ac33892c6c6237ed0dd798c5a9790c (patch) | |
tree | feb07776944fc40d57b1e722b14f464a16c7a0bb /usr/local | |
parent | 7a938f1b105c97c4d7e1668d2ddc8be2d3d24f36 (diff) | |
download | pfsense-0172c431c1ac33892c6c6237ed0dd798c5a9790c.zip pfsense-0172c431c1ac33892c6c6237ed0dd798c5a9790c.tar.gz |
Actually correctly handle editing of vips with index 0.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index c5b35a2..3fbe754 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -216,7 +216,7 @@ if ($_POST) { mark_subsystem_dirty('vip'); write_config(); - if (!$id && $id != 0) + if (!isset($id)) $id = count($a_vip) - 1; header("Location: firewall_virtual_ip.php?changes=mods&id={$id}"); exit; |