fix adding new one-time charges, from #26282
[freeside.git] / httemplate / edit / quick-charge.html
index 7b88bcc..e141e7d 100644 (file)
@@ -459,6 +459,6 @@ if ( $cust_pkg ) { # set defaults
   }
 }
 
-my $billed = $cust_pkg->get('setup') ? 1 : 0;
+my $billed = ($cust_pkg and $cust_pkg->get('setup')) ? 1 : 0;
 
 </%init>