From b2d58e3d01d495193e9f30a84b165dc54de9e8a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Tue, 25 Jul 2023 02:10:20 +0200 Subject: [PATCH] fix: fix bug in Mail.pm (#8726) --- lib/ProductOpener/Mail.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ProductOpener/Mail.pm b/lib/ProductOpener/Mail.pm index 2c0322fd2a000..98e26b13a2a77 100644 --- a/lib/ProductOpener/Mail.pm +++ b/lib/ProductOpener/Mail.pm @@ -225,7 +225,7 @@ sub get_html_email_content ($filename, $lang) { $file = "$data_root/lang/en/emails/$filename"; } - open(my $IN, "<:encoding(UTF-8)", $file) or log->error("Can't open $file for reading"); + open(my $IN, "<:encoding(UTF-8)", $file) or $log->error("Can't open $file for reading"); return unless $IN; my $html = join('', (<$IN>)); close($IN);