From 8c84e8692d48eff3b03822dcd18c1766fd0b9bca Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Tue, 10 Feb 2015 14:12:13 -0600 Subject: [PATCH] Bug fix: checking ref() instead of defined() --- FS/FS/cust_pkg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 3bd210706..56e4c90d7 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; } -- 2.11.0