Restore / save checkbox correctly

This commit is contained in:
Scott Ullrich 2005-10-18 01:21:30 +00:00
parent 93008d1b8a
commit 018ea87778

View File

@ -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;