Bug 34731: (follow-up) Fix conditional variable declaration
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 60d6d79b22)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
1470f09b75
commit
d0575c80b4
|
|
@ -158,7 +158,8 @@ sub SendPasswordRecoveryEmail {
|
|||
}
|
||||
);
|
||||
|
||||
my $num_letters_attempted = C4::Letters::SendQueuedMessages( { message_id => $message_id } ) if $message_id;
|
||||
my $num_letters_attempted = 0;
|
||||
$num_letters_attempted = C4::Letters::SendQueuedMessages( { message_id => $message_id } ) if $message_id;
|
||||
|
||||
return ($num_letters_attempted > 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue