diff options
author | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-08-07 16:24:20 +0000 |
---|---|---|
committer | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-08-07 16:24:20 +0000 |
commit | 490cb57c97473842f0f4b93a11a738135dd1a00c (patch) | |
tree | 7d6ba1bd9a495511bf2d500f8eca32f568038ca6 | |
parent | e2504b1f23a479441ae0eb4525747c8ecdd8205d (diff) | |
download | pfsense-packages-490cb57c97473842f0f4b93a11a738135dd1a00c.tar.gz pfsense-packages-490cb57c97473842f0f4b93a11a738135dd1a00c.tar.bz2 pfsense-packages-490cb57c97473842f0f4b93a11a738135dd1a00c.zip |
- fix: check whether its an array or not
-rw-r--r-- | packages/dspam/pkg/dspam-pkgfunc.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/dspam/pkg/dspam-pkgfunc.inc b/packages/dspam/pkg/dspam-pkgfunc.inc index 0ea5ba85..31a7fa06 100644 --- a/packages/dspam/pkg/dspam-pkgfunc.inc +++ b/packages/dspam/pkg/dspam-pkgfunc.inc @@ -429,9 +429,11 @@ EOD; $t_spwds = &$dspamcfg['server-pwd']; $i = 1; - foreach ($t_spwds as $spwd) { - $dspamconf .= "ServerPass.Relay{$i}\t\"{$spwd['value']}\"\n"; - $i++; + if (is_array($t_spwds)) { + foreach ($t_spwds as $spwd) { + $dspamconf .= "ServerPass.Relay{$i}\t\"{$spwd['value']}\"\n"; + $i++; + } } } else if ($dspamcfg['dspam-server-mode'] == "standard") { $dspamconf .= <<<EOD |