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

(-)a/C4/Letters.pm (-1 / +4 lines)
Lines 1050-1055 sub SendQueuedMessages { Link Here
1050
            if ( C4::Context->preference('SMSSendDriver') eq 'Email' ) {
1050
            if ( C4::Context->preference('SMSSendDriver') eq 'Email' ) {
1051
                my $member = C4::Members::GetMember( 'borrowernumber' => $message->{'borrowernumber'} );
1051
                my $member = C4::Members::GetMember( 'borrowernumber' => $message->{'borrowernumber'} );
1052
                my $sms_provider = Koha::SMS::Providers->find( $member->{'sms_provider_id'} );
1052
                my $sms_provider = Koha::SMS::Providers->find( $member->{'sms_provider_id'} );
1053
                unless ( $sms_provider ) {
1054
                    warn sprintf( "Patron %s has no sms provider id set!", $message->{'borrowernumber'} ) if $params->{'verbose'} or $debug;
1055
                    next MESSAGE;
1056
                }
1053
                $message->{to_address} .= '@' . $sms_provider->domain();
1057
                $message->{to_address} .= '@' . $sms_provider->domain();
1054
                _send_message_by_email( $message, $params->{'username'}, $params->{'password'}, $params->{'method'} );
1058
                _send_message_by_email( $message, $params->{'username'}, $params->{'password'}, $params->{'method'} );
1055
            } else {
1059
            } else {
1056
- 

Return to bug 18457