mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Unset enable parameter instead of set its value to false. Fixes #1838
This commit is contained in:
parent
c4bd43ccba
commit
d348160eb4
@ -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'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user