summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-03-02 20:12:02 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-03-02 20:12:02 -0700
commitcccdc09f64859470e5f5648c067373fe981faaf1 (patch)
tree83ef2195e4916039549d3e215bc4074b5af65c3e /usr
parente62e2f8b28b9ecd2d22d991cf9f05d16f0f19ec2 (diff)
downloadpfsense-cccdc09f64859470e5f5648c067373fe981faaf1.zip
pfsense-cccdc09f64859470e5f5648c067373fe981faaf1.tar.gz
Fix conditions for disable.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 578bcde..fa7c0b7 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -270,7 +270,7 @@ if ($_POST['apply']) {
else {
unlink_if_exists("{$g['tmp_path']}/config.cache");
clear_subsystem_dirty('interfaces');
- if (isset($pconfig['enable']))
+ if ($pconfig['enable'])
interface_configure($if, true);
else
interface_bring_down($if);
@@ -293,7 +293,7 @@ if ($_POST['apply']) {
exit;
} else
-if ($_POST && $_POST['enable'] == "no") {
+if ($_POST && $_POST['enable'] != "yes") {
unset($wancfg['enable']);
interface_bring_down($if);
if (isset($wancfg['wireless'])) {
OpenPOWER on IntegriCloud