diff options
author | ivan <ivan> | 2009-10-05 18:17:55 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-10-05 18:17:55 +0000 |
commit | 2caddb16574bf73c3687b959656b7ee2f851937f (patch) | |
tree | 4793f72daba1012bdc244d94b776f44bddf4133a /httemplate/misc | |
parent | 7f46c75d39e2c888686f3d438604e7556ea00c26 (diff) |
oops, handle old cust_main.pm properly (should we be bothering?) :/ RT#5889
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/payment.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 8d7baa5da..813b560bd 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -300,8 +300,12 @@ my $fee = ''; my $fee_pkg = ''; my $fee_display = ''; my $fee_op = ''; +my $num_payments = scalar($cust_main->cust_pay); +#handle old cust_main.pm (remove...) +$num_payments = scalar( @{ [ $cust_main->cust_pay ] } ) + unless defined $num_payments; if ( $conf->config('manual_process-pkgpart') - and ! $conf->exists('manual_process-skip_first') || $cust_main->cust_pay + and ! $conf->exists('manual_process-skip_first') || $num_payments ) { |