diff options
author | ivan <ivan> | 2002-04-17 11:43:37 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-04-17 11:43:37 +0000 |
commit | df8ea3edfbcb3b286e6dca5a98d697fe091be526 (patch) | |
tree | c33f848c70064b849986f8fb3abe1465169135e7 /fs_signup | |
parent | 62afa0957fd72ec52e9a8defbdbcc796bd04fb82 (diff) |
allow for the no-pop case
Diffstat (limited to 'fs_signup')
-rwxr-xr-x | fs_signup/FS-SignupClient/cgi/signup.cgi | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/fs_signup/FS-SignupClient/cgi/signup.cgi b/fs_signup/FS-SignupClient/cgi/signup.cgi index f13dd437d..1819e7c86 100755 --- a/fs_signup/FS-SignupClient/cgi/signup.cgi +++ b/fs_signup/FS-SignupClient/cgi/signup.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: signup.cgi,v 1.21 2002-04-16 00:02:26 ivan Exp $ +# $Id: signup.cgi,v 1.22 2002-04-17 11:43:37 ivan Exp $ use strict; use vars qw( @payby $cgi $locales $packages $pops $init_data $error @@ -235,9 +235,13 @@ sub print_okay { or die "fatal: invalid email_name got past FS::SignupClient::new_customer"; my $email_name = $1; - my $pop = pop_info($cgi->param('popnum')) - or die "fatal: invalid popnum got past FS::SignupClient::new_customer"; - ( $ac, $exch, $loc ) = ( $pop->{'ac'}, $pop->{'exch'}, $pop->{'loc'} ); + my $pop = pop_info($cgi->param('popnum')); + #or die "fatal: invalid popnum got past FS::SignupClient::new_customer"; + if ( $pop ) { + ( $ac, $exch, $loc ) = ( $pop->{'ac'}, $pop->{'exch'}, $pop->{'loc'} ); + } else { + ( $ac, $exch, $loc ) = ( '', '', ''); #presumably you're not using them. + } my $pkg = ( grep { $_->{'pkgpart'} eq $pkgpart } @$packages )[0]->{'pkg'}; |