summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_update_settings.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-02-10 19:02:53 -0600
committerChris Buechler <cmb@pfsense.org>2016-02-10 19:03:38 -0600
commit9d77d005c0928d673aa06bd57139be02a4480974 (patch)
tree6652710e81f3561eb330ec527b7b7c50e012d13b /src/usr/local/www/system_update_settings.php
parentefaaf474772af048d453786b073923e3e9cfc4d9 (diff)
downloadpfsense-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/usr/local/www/system_update_settings.php')
-rw-r--r--src/usr/local/www/system_update_settings.php4
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'];
OpenPOWER on IntegriCloud