aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dspam
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dspam')
-rw-r--r--packages/dspam/pkg/dspam-pkgfunc.inc8
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