X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount_menu.html;h=4036432aab5522cee439cca995e67db410f29fb7;hp=1f448a1048a8bc89d5e31984cee946e88726d795;hb=46e04077cc22ff9d31e8e9896cbf97e31f1b0e7d;hpb=1eff7a1cd742bab7a0084d55f74b2f53c1f84e64 diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount_menu.html b/fs_selfservice/FS-SelfService/cgi/myaccount_menu.html index 1f448a104..4036432aa 100644 --- a/fs_selfservice/FS-SelfService/cgi/myaccount_menu.html +++ b/fs_selfservice/FS-SelfService/cgi/myaccount_menu.html @@ -28,7 +28,7 @@ if ( 1 ) { #XXXFIXME "enable selfservice prepay features" flag or something, eve #XXXFIXME still a bit sloppy for multi-gateway of differing namespace my $i = 0; while($i < scalar(@cust_paybys)) { last if $cust_paybys[$i] =~ /^CARD/; $i++ } - if ( $cust_paybys[$i] =~ /^CARD/ ) { + if ( $cust_paybys[$i] && $cust_paybys[$i] =~ /^CARD/ ) { push @menu, { title => 'Recharge my account with a credit card', url => $hide_payment_fields[$i] ? 'make_thirdparty_payment&payby_method=CC' @@ -39,7 +39,7 @@ if ( 1 ) { #XXXFIXME "enable selfservice prepay features" flag or something, eve $i = 0; while($i < scalar(@cust_paybys)) { last if $cust_paybys[$i] =~ /^CHEK/; $i++ } - if ( $cust_paybys[$i] =~ /^CHEK/ ) { + if ( $cust_paybys[$i] && $cust_paybys[$i] =~ /^CHEK/ ) { push @menu, { title => 'Recharge my account with a check', url => $hide_payment_fields[$i] ? 'make_thirdparty_payment&payby_method=ECHECK'