Skip to content

Commit 146ee3c

Browse files
committed
Checking for a mail clash makes no sense if mail is disabled
1 parent 8802408 commit 146ee3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: feature-mail.pl

+1
Original file line numberDiff line numberDiff line change
@@ -3544,6 +3544,7 @@ sub parse_restore_mail
35443544
sub check_clash
35453545
{
35463546
&require_mail();
3547+
return 0 if (!$config{'mail'});
35473548
local @virts = &list_virtusers();
35483549
local ($clash) = grep { $_->{'from'} eq $_[0]."\@".$_[1] } @virts;
35493550
return 1 if ($clash);

0 commit comments

Comments
 (0)