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

index 844d1b8..56f9142 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)$/ }