Bug 22343: (QA follow-up) Fix some comments

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Martin Renvoize 2020-09-08 09:38:45 +01:00 committed by Jonathan Druart
parent c9c1458df1
commit cd7b54ab71
2 changed files with 1 additions and 3 deletions

View File

@ -1363,7 +1363,7 @@ sub _send_message_by_email {
}
# if initial message address was empty, coming here means that a to address was found and
# queue should be updated; same if to address was overriden by create_message_headers
# queue should be updated; same if to address was overriden by Koha::Email->create
_update_message_to_address( $message->{'message_id'}, $email->email->header('To') )
if !$message->{to_address}
|| $message->{to_address} ne $email->email->header('To');

View File

@ -105,8 +105,6 @@ sub smtp_server {
else {
# Getter
if ( $library_smtp_server_rs ) {
# use Data::Printer colored => 1;
# p($library_smtp_server_rs);
return Koha::SMTP::Servers->find(
$library_smtp_server_rs->smtp_server_id );
}