diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-18 01:21:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-18 01:21:30 +0000 |
commit | 018ea87778e121103eeb0ea9d1f73cfc08c75c12 (patch) | |
tree | 4a600ae54034cb02e822f67c057c7b7cd979bc71 /usr/local/www | |
parent | 93008d1b8af956f99f6b8f34f2e8540e1f8ff81a (diff) | |
download | pfsense-018ea87778e121103eeb0ea9d1f73cfc08c75c12.zip pfsense-018ea87778e121103eeb0ea9d1f73cfc08c75c12.tar.gz |
Restore / save checkbox correctly
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/system_advanced.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php index 391db71..5b7e2d8 100755 --- a/usr/local/www/system_advanced.php +++ b/usr/local/www/system_advanced.php @@ -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; |