From 018ea87778e121103eeb0ea9d1f73cfc08c75c12 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 18 Oct 2005 01:21:30 +0000 Subject: Restore / save checkbox correctly --- usr/local/www/system_advanced.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr') 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; -- cgit v1.1