From: Jonathan Prykop Date: Tue, 10 Feb 2015 20:12:13 +0000 (-0600) Subject: Bug fix: checking ref() instead of defined() X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=8c84e8692d48eff3b03822dcd18c1766fd0b9bca Bug fix: checking ref() instead of defined() --- 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; }