diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-02-10 14:12:13 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-02-10 14:12:13 -0600 |
commit | 8c84e8692d48eff3b03822dcd18c1766fd0b9bca (patch) | |
tree | 565f635752c70350fc76abb42d7b15fca678e6cd | |
parent | d9ab02b37871572303a9d3c47cd8b3d79e37cce9 (diff) |
Bug fix: checking ref() instead of defined()
-rw-r--r-- | FS/FS/cust_pkg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 3bd2107..56e4c90 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -1643,7 +1643,7 @@ sub unsuspend { ) or $hash{'order_date'} == $hash{'susp'} or $self->part_pkg->option('unused_credit_suspend') - or ( defined($reason) and $reason->unused_credit ) + or ( ref($reason) and $reason->unused_credit ) ) { $adjust_bill = 0; } |