mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 10:28:14 +00:00
avoid warning about uninitialized value
This commit is contained in:
parent
77e3397ee5
commit
02e5975925
@ -268,7 +268,8 @@ sub sendmail {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return if (!$ecount && !$err && $opts->{mailnotification} eq 'failure');
|
my $notify = $opts->{mailnotification} || 'always';
|
||||||
|
return if (!$ecount && !$err && ($notify eq 'failure'));
|
||||||
|
|
||||||
my $stat = ($ecount || $err) ? 'backup failed' : 'backup successful';
|
my $stat = ($ecount || $err) ? 'backup failed' : 'backup successful';
|
||||||
$stat .= ": $err" if $err;
|
$stat .= ": $err" if $err;
|
||||||
|
Loading…
Reference in New Issue
Block a user