summaryrefslogtreecommitdiffstats
path: root/modules-available/baseconfig
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-23 15:16:30 +0100
committerSimon Rettberg2017-11-23 15:16:30 +0100
commitd36249e66c4b5abf94d0b2bb0e70a3cb77888a38 (patch)
tree2faa3d01256e5447f1d65a54acc8cba167cd1220 /modules-available/baseconfig
parent[syslog] Fixed sql injection prevention (diff)
downloadslx-admin-d36249e66c4b5abf94d0b2bb0e70a3cb77888a38.tar.gz
slx-admin-d36249e66c4b5abf94d0b2bb0e70a3cb77888a38.tar.xz
slx-admin-d36249e66c4b5abf94d0b2bb0e70a3cb77888a38.zip
[baseconfig] Fix shadow variable handling on unset vars
Diffstat (limited to 'modules-available/baseconfig')
-rw-r--r--modules-available/baseconfig/page.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/baseconfig/page.inc.php b/modules-available/baseconfig/page.inc.php
index bd9d6683..366a1238 100644
--- a/modules-available/baseconfig/page.inc.php
+++ b/modules-available/baseconfig/page.inc.php
@@ -178,7 +178,7 @@ class Page_BaseConfig extends Page
$settings[$var['catid']]['settings'][$key]['displayvalue'] = $var['defaultvalue'];
}
if (!isset($settings[$var['catid']]['settings'][$key]['shadows'])) {
- $settings[$var['catid']]['settings'][$key]['shadows'] = null;
+ $settings[$var['catid']]['settings'][$key]['shadows'] = isset($var['shadows']) ? $var['shadows'] : null;
}
//echo "<pre>";
//var_dump($settings[$var['catid']]['settings'][$key]);