don't throw noisy warnings about missing new recur_temporality, RT#3851
[freeside.git] / FS / FS / part_pkg / flat.pm
index 2f8fadf..21b3f1e 100644 (file)
@@ -132,7 +132,7 @@ sub calc_recur {
   my $last_bill = $cust_pkg->get('last_bill'); #->last_bill falls back to setup
 
   return 0
-    if $self->option('recur_temporality') eq 'preceding' && $last_bill == 0;
+    if $self->option('recur_temporality', 1) eq 'preceding' && $last_bill == 0;
 
   $self->base_recur($cust_pkg);
 }