summaryrefslogtreecommitdiff
path: root/FS/FS/cust_pkg.pm
diff options
context:
space:
mode:
authorjeff <jeff>2009-03-10 16:14:11 +0000
committerjeff <jeff>2009-03-10 16:14:11 +0000
commit32db3ad86bcf04e4f34705a396b718061d333f20 (patch)
tree1c64247c48327cb36d3bf7cbee466a655917fea4 /FS/FS/cust_pkg.pm
parent200171841941972b3305cf8be8ef367a1a363e93 (diff)
merge webpay support in with autoselection of old realtime_bop and realtime_refund_bop
Diffstat (limited to 'FS/FS/cust_pkg.pm')
-rw-r--r--FS/FS/cust_pkg.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index dd6db1b..7c8656c 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -439,9 +439,7 @@ replace methods.
sub check {
my $self = shift;
- $self->locationnum('')
- if defined($self->locationnum) && length($self->locationnum)
- && ( $self->locationnum == 0 || $self->locationnum == -1 );
+ $self->locationnum('') if !$self->locationnum || $self->locationnum == -1;
my $error =
$self->ut_numbern('pkgnum')