diff options
author | ivan <ivan> | 2005-09-29 20:19:56 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-09-29 20:19:56 +0000 |
commit | 8bbcafca3af0cd8d20e1b253e58c382d376fd792 (patch) | |
tree | 9f8aea52a908f175c9c08e7eca0a20a290097c5c | |
parent | c5eaa461999e1b26723535deaa3fbbc03df39578 (diff) |
make sure there is an expiraiton date to set as well
-rw-r--r-- | FS/FS/svc_acct.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index de89819b3..4a618108f 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -1058,7 +1058,7 @@ sub radius_check { my $pw_attrib = length($password) <= 12 ? $radius_password : 'Crypt-Password'; $check{$pw_attrib} = $password; my $cust_pkg = $self->cust_svc->cust_pkg; - if ( $cust_pkg && $cust_pkg->part_pkg->is_prepaid ) { + if ( $cust_pkg && $cust_pkg->part_pkg->is_prepaid && $cust_pkg->bill ) { $check{'Expiration'} = time2str('%B %e %Y %T', $cust_pkg->bill ); #http://lists.cistron.nl/pipermail/freeradius-users/2005-January/040184.html } |