View | Details | Raw Unified | Return to bug 21771
Collapse All | Expand All

(-)a/opac/opac-password-recovery.pl (-2 / +2 lines)
Lines 75-81 if ( $query->param('sendEmail') || $query->param('resendEmail') ) { Link Here
75
    elsif ( $borrower = $search_results->next() ) {    # One matching borrower
75
    elsif ( $borrower = $search_results->next() ) {    # One matching borrower
76
        my @emails = grep { $_ } ( $borrower->email, $borrower->emailpro, $borrower->B_email );
76
        my @emails = grep { $_ } ( $borrower->email, $borrower->emailpro, $borrower->B_email );
77
77
78
        my $firstNonEmptyEmail = shift @emails;
78
        my $firstNonEmptyEmail;
79
        $firstNonEmptyEmail = $emails[0] if @emails;
79
80
80
        # Is the given email one of the borrower's ?
81
        # Is the given email one of the borrower's ?
81
        if ( $email && !( grep /^$email$/i, @emails ) ) {
82
        if ( $email && !( grep /^$email$/i, @emails ) ) {
82
- 

Return to bug 21771