squash bug which causes re-email failed events to fail
authorjeff <jeff>
Wed, 4 Apr 2007 15:30:34 +0000 (15:30 +0000)
committerjeff <jeff>
Wed, 4 Apr 2007 15:30:34 +0000 (15:30 +0000)
FS/FS/cust_bill.pm

index 1317448..82b5e0c 100644 (file)
@@ -524,7 +524,7 @@ sub generate_email {
     'subject'   => (($args{'subject'}) ? $args{'subject'} : 'Invoice'),
   );
 
-  if (ref($args{'to'} eq 'ARRAY')) {
+  if (ref($args{'to'}) eq 'ARRAY') {
     $return{'to'} = $args{'to'};
   } else {
     $return{'to'} = [ grep { $_ !~ /^(POST|FAX)$/ }