projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d9ab02b
)
Bug fix: checking ref() instead of defined()
author
Jonathan Prykop
<jonathan@freeside.biz>
Tue, 10 Feb 2015 20:12:13 +0000
(14:12 -0600)
committer
Jonathan Prykop
<jonathan@freeside.biz>
Tue, 10 Feb 2015 20:12:13 +0000
(14:12 -0600)
FS/FS/cust_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_pkg.pm
b/FS/FS/cust_pkg.pm
index
3bd2107
..
56e4c90
100644
(file)
--- 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 $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;
}
) {
$adjust_bill = 0;
}