X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcdr.pm;h=fce7a14caf50d0d33e8a73186dd1d1356c562ba2;hb=5db92cf346acf4205aa96f58843a0a1d065f3988;hp=cd1416533e509b2f8b56b898d6f4fc23b45afccc;hpb=f5a3514aa0c5b197a7c520205f8103da1363572a;p=freeside.git diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm index cd1416533..fce7a14ca 100644 --- 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'; - 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' ) {