diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-11-17 10:23:38 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-11-17 10:23:38 +0000 |
commit | 9ad878a1ecec48afc1400199ca6c6443fc8541ac (patch) | |
tree | dc015283e1490541c50be67dbe05d01fb5d29848 /usr | |
parent | c3b347f199b3854e161e533a9191fdf2c7aaae19 (diff) | |
download | pfsense-9ad878a1ecec48afc1400199ca6c6443fc8541ac.zip pfsense-9ad878a1ecec48afc1400199ca6c6443fc8541ac.tar.gz |
Improve duplicate check
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index bc98a08..9d38334 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -56,13 +56,13 @@ if (isset($id) && $a_gateways[$id]) { $pconfig['defaultgw'] = $a_gateways[$id]['defaultgw']; $pconfig['monitor'] = $a_gateways[$id]['monitor']; $pconfig['descr'] = $a_gateways[$id]['descr']; - if (!isset($_GET['dup'])) { - $pconfig['attribute'] = $a_gateways[$id]['attribute']; - } + $pconfig['attribute'] = $a_gateways[$id]['attribute']; } -if (isset($_GET['dup'])) +if (isset($_GET['dup'])) { unset($id); + unset($pconfig['attribute']); +} if ($_POST) { |