diff options
author | Chris Buechler <cmb@pfsense.org> | 2008-06-22 23:22:08 +0000 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2008-06-22 23:22:08 +0000 |
commit | cd69ac1f17dc920cf95fdbc1aadcc41b6cd5303f (patch) | |
tree | a2afa4791b2d53ddbc4c023296aa64263a1a4997 /usr | |
parent | 8e74cb8d64051aec8f05338592046419886c7cb0 (diff) | |
download | pfsense-cd69ac1f17dc920cf95fdbc1aadcc41b6cd5303f.zip pfsense-cd69ac1f17dc920cf95fdbc1aadcc41b6cd5303f.tar.gz |
Restore change that ermal overwrote.
Ticket #1760
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index 5bcc65f..5f404ef 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -55,12 +55,10 @@ $a_gateways = &$config['gateways']['gateway_item']; $optcfg = &$config['interfaces'][$optif]; $optcfg['descr'] = remove_bad_chars($optcfg['descr']); -if (!is_array($config['aliases']['alias'])) - $config['aliases']['alias'] = array(); - -foreach($config['aliases']['alias'] as $alias) - if($alias['name'] == $optcfg['descr']) - $input_errors[] = gettext("Sorry, an alias with the name {$optcfg['descr']} already exists."); +if(is_array($config['aliases']['alias'])) + foreach($config['aliases']['alias'] as $alias) + if($alias['name'] == $optcfg['descr']) + $input_errors[] = gettext("Sorry, an alias with the name {$optcfg['descr']} already exists."); $pconfig['descr'] = $optcfg['descr']; $pconfig['bridge'] = $optcfg['bridge']; |