summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_opt.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-06-22 23:22:08 +0000
committerChris Buechler <cmb@pfsense.org>2008-06-22 23:22:08 +0000
commitcd69ac1f17dc920cf95fdbc1aadcc41b6cd5303f (patch)
treea2afa4791b2d53ddbc4c023296aa64263a1a4997 /usr/local/www/interfaces_opt.php
parent8e74cb8d64051aec8f05338592046419886c7cb0 (diff)
downloadpfsense-cd69ac1f17dc920cf95fdbc1aadcc41b6cd5303f.zip
pfsense-cd69ac1f17dc920cf95fdbc1aadcc41b6cd5303f.tar.gz
Restore change that ermal overwrote.
Ticket #1760
Diffstat (limited to 'usr/local/www/interfaces_opt.php')
-rwxr-xr-xusr/local/www/interfaces_opt.php10
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'];
OpenPOWER on IntegriCloud