Bug 34728: (QA follow-up) Remove o modifier, bit more compact

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2023-09-15 07:01:24 +00:00 committed by Tomas Cohen Arazi
parent d947ae3c1a
commit bda428399a
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 2 additions and 4 deletions

View File

@ -214,10 +214,8 @@ sub generate_html {
C4::Templates::gettemplate( 'batch/print-notices.tt', 'intranet',
CGI->new );
foreach my $message (@{ $messages }) {
my $content_type = $message->{'content_type'} || 'text/plain; charset="UTF-8"';
my $is_html = $content_type =~ m/html/io;
$message->{'is_html'} = $is_html;
foreach my $message (@$messages) {
$message->{is_html} = $message->{content_type} && $message->{content_type} =~ /html/i;
}
$template->param(