diff options
author | Ermal <eri@pfsense.org> | 2010-03-12 18:59:58 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-12 18:59:58 +0000 |
commit | a611f8b7560b30a7c975dce2c12c9651d5452025 (patch) | |
tree | 99c54db773c1fd51157ec1d4335f8fdecedea3a4 | |
parent | 22299b2731a258e67f25b56adf5df10f94f9b75e (diff) | |
download | pfsense-packages-a611f8b7560b30a7c975dce2c12c9651d5452025.tar.gz pfsense-packages-a611f8b7560b30a7c975dce2c12c9651d5452025.tar.bz2 pfsense-packages-a611f8b7560b30a7c975dce2c12c9651d5452025.zip |
Fix editing of interfaces.
-rw-r--r-- | config/openospfd/openospfd.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/openospfd/openospfd.inc b/config/openospfd/openospfd.inc index c131142a..d6a3e67d 100644 --- a/config/openospfd/openospfd.inc +++ b/config/openospfd/openospfd.inc @@ -186,13 +186,13 @@ function ospfd_install_conf() { } function ospfd_validate_interface() { - global $config, $g, $input_errors; + global $config, $g, $id, $input_errors; if ($config['installedpackages']['ospfdinterfaces']['config']) { foreach ($config['installedpackages']['ospfdinterfaces']['config'] as $index => $conf) { if ($index == 0) continue; - if ($conf['interface'] == $_POST['interface']) + if ($id != $index && $conf['interface'] == $_POST['interface']) $input_errors[] = "Interface {$_POST['interface']} is already configured."; } } |