summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-18 01:21:30 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-18 01:21:30 +0000
commit018ea87778e121103eeb0ea9d1f73cfc08c75c12 (patch)
tree4a600ae54034cb02e822f67c057c7b7cd979bc71 /usr
parent93008d1b8af956f99f6b8f34f2e8540e1f8ff81a (diff)
downloadpfsense-018ea87778e121103eeb0ea9d1f73cfc08c75c12.zip
pfsense-018ea87778e121103eeb0ea9d1f73cfc08c75c12.tar.gz
Restore / save checkbox correctly
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_advanced.php5
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;
OpenPOWER on IntegriCloud