aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/stunnel/stunnel.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/stunnel/stunnel.inc b/config/stunnel/stunnel.inc
index dd312323..571cfb01 100644
--- a/config/stunnel/stunnel.inc
+++ b/config/stunnel/stunnel.inc
@@ -120,6 +120,7 @@ function stunnel_save($config) {
fwrite($fout, "chroot = /var/tmp/stunnel \n");
fwrite($fout, "setuid = stunnel \n");
fwrite($fout, "setgid = stunnel \n");
+ if(!is_array($config['installedpackages']['stunnel']['config'])) { $config['installedpackages']['stunnel']['config']=Array(); }
foreach($config['installedpackages']['stunnel']['config'] as $pkgconfig) {
fwrite($fout, "\n[" . $pkgconfig['description'] . "]\n");
if($pkgconfig['certificate']) {
@@ -235,4 +236,4 @@ function stunnel_deinstall() {
unlink_if_exists("/usr/local/etc/rc.d/stunnel.sh");
}
-?> \ No newline at end of file
+?>