From 5962b089769f7abd661094e2a921633e18427382 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Sun, 6 Mar 2005 23:05:55 +0000 Subject: Use a slightly less restrictive if statement for configuration checking. --- packages/doormanusers.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/doormanusers.xml b/packages/doormanusers.xml index a4143e5f..d548e009 100644 --- a/packages/doormanusers.xml +++ b/packages/doormanusers.xml @@ -78,7 +78,7 @@ 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']['config'] != "") { + 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"); } -- cgit v1.2.3