squash bug which causes re-email failed events to fail
[freeside.git] / 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)$/ }