diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-02-10 19:02:53 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-02-10 19:03:38 -0600 |
commit | 9d77d005c0928d673aa06bd57139be02a4480974 (patch) | |
tree | 6652710e81f3561eb330ec527b7b7c50e012d13b /src | |
parent | efaaf474772af048d453786b073923e3e9cfc4d9 (diff) | |
download | pfsense-9d77d005c0928d673aa06bd57139be02a4480974.zip pfsense-9d77d005c0928d673aa06bd57139be02a4480974.tar.gz |
['system']['gitsync'] and ['system']['firmware'] may not be arrays, only unset if they're set to avoid "Cannot unset string offsets". Ticket #5852
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/system_update_settings.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/system_update_settings.php b/src/usr/local/www/system_update_settings.php index 96b7c6d..d99ea9a 100644 --- a/src/usr/local/www/system_update_settings.php +++ b/src/usr/local/www/system_update_settings.php @@ -78,13 +78,13 @@ if ($_POST) { if ($_POST['disablecheck'] == "yes") { $config['system']['firmware']['disablecheck'] = true; - } else { + } elseif (isset($config['system']['firmware']['disablecheck'])) { unset($config['system']['firmware']['disablecheck']); } if ($_POST['synconupgrade'] == "yes") { $config['system']['gitsync']['synconupgrade'] = true; - } else { + } elseif (isset($config['system']['gitsync']['synconupgrade'])) { unset($config['system']['gitsync']['synconupgrade']); } $config['system']['gitsync']['repositoryurl'] = $_POST['repositoryurl']; |