diff options
Diffstat (limited to 'packages/doormanusers.xml')
-rw-r--r-- | packages/doormanusers.xml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/doormanusers.xml b/packages/doormanusers.xml index e73cd88e..54e83a7e 100644 --- a/packages/doormanusers.xml +++ b/packages/doormanusers.xml @@ -78,11 +78,10 @@ global $config; $fout = fopen("/usr/local/etc/doormand/guestlist","w"); fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); - if($config['installedpackages']['doormanusers'] != "") { + if($config['installedpackages']['doormanusers']) foreach($config['installedpackages']['doormanusers']['config'] as $rowhelper) { fwrite($fout, $rowhelper['username'] . "\t" . $rowhelper['password'] . "\n\t" . $rowhelper['ports'] . "\n\t" . $rowhelper['addresses'] . "\n\n"); } - } fclose($fout); restart_service("doorman"); conf_mount_ro(); |