We're passing a list here, not one argument.
authorkhoff <khoff>
Wed, 11 Jun 2003 19:13:43 +0000 (19:13 +0000)
committerkhoff <khoff>
Wed, 11 Jun 2003 19:13:43 +0000 (19:13 +0000)
FS/FS/Misc.pm

index 56dc72e..1f95159 100644 (file)
@@ -54,7 +54,7 @@ FS::UID->install_callback( sub {
 } );
 
 sub send_email {
-  my(%options) = shift;
+  my(%options) = @_;
 
   $ENV{MAILADDRESS} = $options{'from'};
   my $to = ref($options{to}) ? join(', ', @{ $options{to} } ) : $options{to};