Kosmetik.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 4 May 2009 11:13:47 +0000 (11:13 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 4 May 2009 11:13:47 +0000 (11:13 +0000)
SL/Form.pm

index 71af15e..8ed29eb 100644 (file)
@@ -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;