fixed bug: setting spamassassin options fails for user without any SA settings
This commit is contained in:
parent
385f0cc3ad
commit
de44f72081
1 changed files with 11 additions and 6 deletions
|
@ -342,6 +342,9 @@ sub update_filter_options {
|
|||
return (0==1);
|
||||
}
|
||||
|
||||
{
|
||||
my @spam_options = &get_ldap_values('spamassassin');
|
||||
if ($#spam_options > 0) {
|
||||
$result = $ldap->modify($user_dn, delete => ['spamassassin'] );
|
||||
if ($result->is_error) {
|
||||
warn $result->error_text;
|
||||
|
@ -349,6 +352,8 @@ sub update_filter_options {
|
|||
$ldap->unbind;
|
||||
return (1==0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
my $spam_score = $q->param('spam_score');
|
||||
|
|
Loading…
Reference in a new issue