diff options
author | Simon Rettberg | 2017-11-23 15:16:30 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-11-23 15:16:30 +0100 |
commit | d36249e66c4b5abf94d0b2bb0e70a3cb77888a38 (patch) | |
tree | 2faa3d01256e5447f1d65a54acc8cba167cd1220 /modules-available/baseconfig | |
parent | [syslog] Fixed sql injection prevention (diff) | |
download | slx-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.php | 2 |
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]); |