mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Restore / save checkbox correctly
This commit is contained in:
parent
93008d1b8a
commit
018ea87778
@ -113,7 +113,10 @@ if ($_POST) {
|
||||
$oldsshport = $config['system']['ssh']['port'];
|
||||
$config['system']['ssh']['port'] = $_POST['sshport'];
|
||||
|
||||
$config['system']['polling'] = $_POST['polling_enable'] ? true : false;
|
||||
if($_POST['polling_enable'] == "yes")
|
||||
$config['system']['polling'] = true;
|
||||
else
|
||||
unset($config['system']['polling']);
|
||||
|
||||
if($_POST['sharednet'] == "yes") {
|
||||
$config['system']['sharednet'] = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user