diff --git a/virtual_feature.pl b/virtual_feature.pl index aabda60..3bd5a0b 100755 --- a/virtual_feature.pl +++ b/virtual_feature.pl @@ -657,7 +657,7 @@ sub mailbox_modify $suser->{'user'} = $un; &htaccess_htpasswd::modify_user($suser); foreach my $r (&list_reps($dom)) { - my @rusers = &list_rep_users($dom, $r->{'rep'}); + my @rusers = &list_rep_users($dom, $r); my ($ruser) = grep { $_->{'user'} eq $oun } @rusers; if ($ruser) { $ruser->{'user'} = $un; @@ -696,7 +696,7 @@ sub mailbox_delete # Remove from all repositories foreach my $r (&list_reps($dom)) { - my @rusers = &list_rep_users($dom, $r->{'rep'}); + my @rusers = &list_rep_users($dom, $r); my ($ruser) = grep { $_->{'user'} eq $un } @rusers; my @newrusers = grep { $_ ne $ruser } @rusers; if (@newrusers != @rusers) {