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

(-)a/opac/opac-password-recovery.pl (-2 / +1 lines)
Lines 63-69 if ( $query->param('sendEmail') || $query->param('resendEmail') ) { Link Here
63
    elsif ($email) {
63
    elsif ($email) {
64
        $search_results = [ Koha::Patrons->search( { -or => { email => $email, emailpro => $email, B_email  => $email } } ) ];
64
        $search_results = [ Koha::Patrons->search( { -or => { email => $email, emailpro => $email, B_email  => $email } } ) ];
65
    }
65
    }
66
    if ( not $search_results || scalar @$search_results > 1 ) {
66
    if ( not $search_results || eval { scalar @$search_results > 1 } ) {
67
        $hasError           = 1;
67
        $hasError           = 1;
68
        $errNoBorrowerFound = 1;
68
        $errNoBorrowerFound = 1;
69
    }
69
    }
70
- 

Return to bug 16707