summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dyndns_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-22 15:10:47 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-02-22 15:10:47 -0300
commitd348160eb4d400a03aa7cbdc8e8f5d4c400b341f (patch)
treebf763a10b74aa87c737bc0323991c91cd12ac0bc /usr/local/www/services_dyndns_edit.php
parentc4bd43ccba1be01cf3ef05fea89c9730dc633096 (diff)
downloadpfsense-d348160eb4d400a03aa7cbdc8e8f5d4c400b341f.zip
pfsense-d348160eb4d400a03aa7cbdc8e8f5d4c400b341f.tar.gz
Unset enable parameter instead of set its value to false. Fixes #1838
Diffstat (limited to 'usr/local/www/services_dyndns_edit.php')
-rw-r--r--usr/local/www/services_dyndns_edit.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php
index 93fc744..3141b21 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -117,7 +117,11 @@ if ($_POST) {
$dyndns['host'] = $_POST['host'];
$dyndns['mx'] = $_POST['mx'];
$dyndns['wildcard'] = $_POST['wildcard'] ? true : false;
- $dyndns['enable'] = $_POST['enable'] ? false : true;
+ /* In this place enable means disabled */
+ if ($_POST['enable'])
+ unset($dyndns['enable']);
+ else
+ $dyndns['enable'] = true;
$dyndns['interface'] = $_POST['interface'];
$dyndns['zoneid'] = $_POST['zoneid'];
$dyndns['ttl'] = $_POST['ttl'];
OpenPOWER on IntegriCloud