projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
66c62df
)
silence warning
author
Mark Wells
<mark@freeside.biz>
Sun, 10 Aug 2014 00:40:35 +0000
(17:40 -0700)
committer
Mark Wells
<mark@freeside.biz>
Sun, 10 Aug 2014 00:40:35 +0000
(17:40 -0700)
FS/FS/cdr.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cdr.pm
b/FS/FS/cdr.pm
index
cd14165
..
fce7a14
100644
(file)
--- a/
FS/FS/cdr.pm
+++ b/
FS/FS/cdr.pm
@@
-368,7
+368,7
@@
to inspect other field.
sub is_tollfree {
my $self = shift;
my $field = scalar(@_) ? shift : 'dst';
sub is_tollfree {
my $self = shift;
my $field = scalar(@_) ? shift : 'dst';
- my $country = $conf->config('tollfree-country');
+ my $country = $conf->config('tollfree-country')
|| ''
;
if ( $country eq 'AU' ) {
( $self->$field() =~ /^(\+?61)?1800/ ) ? 1 : 0;
} elsif ( $country eq 'NZ' ) {
if ( $country eq 'AU' ) {
( $self->$field() =~ /^(\+?61)?1800/ ) ? 1 : 0;
} elsif ( $country eq 'NZ' ) {