From fdae3f7b3e98eb7f80217b1a2b27f9c9b6752fd1 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 4 May 2009 11:13:47 +0000 Subject: [PATCH] Kosmetik. --- SL/Form.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SL/Form.pm b/SL/Form.pm index 71af15e1d..8ed29eb0b 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1232,10 +1232,8 @@ sub parse_template { } else { if (!$self->{"do_not_attach"}) { - @{ $mail->{attachments} } = - ({ "filename" => $self->{"tmpfile"}, - "name" => $self->{"attachment_filename"} ? - $self->{"attachment_filename"} : $self->{"tmpfile"} }); + $mail->{attachments} = [{ "filename" => $self->{"tmpfile"}, + "name" => $self->{"attachment_filename"} ? $self->{"attachment_filename"} : $self->{"tmpfile"} }]; } $mail->{message} =~ s/\r//g; -- 2.20.1