Commit 5e9aee43 authored by Dietmar Maurer's avatar Dietmar Maurer

avoid warning about uninitialized value

parent a77e8a2d
......@@ -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';
$stat .= ": $err" if $err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment