summaryrefslogtreecommitdiff
path: root/FS/FS/svc_phone.pm
diff options
context:
space:
mode:
authorlevinse <levinse>2011-06-22 18:32:21 +0000
committerlevinse <levinse>2011-06-22 18:32:21 +0000
commitc1c47a765702a1e1dad680f603d25aa04eeb5269 (patch)
tree73e75b7db71a16a5b19475dec522f65fd04bf7e2 /FS/FS/svc_phone.pm
parent8a20ba243bbcf659376037dbce3a05c0d7378e1c (diff)
improve performance of DID provisioning status report, RT10988
Diffstat (limited to 'FS/FS/svc_phone.pm')
-rw-r--r--FS/FS/svc_phone.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/svc_phone.pm b/FS/FS/svc_phone.pm
index 19bef94..4945391 100644
--- a/FS/FS/svc_phone.pm
+++ b/FS/FS/svc_phone.pm
@@ -706,8 +706,8 @@ sub get_cdrs {
my @orwhere = map " $_ = '$number' ", @fields;
push @orwhere, map " $_ = '$prefix$number' ", @fields
- if length($prefix);
- if ( $prefix =~ /^\+(\d+)$/ ) {
+ if defined($prefix) && length($prefix);
+ if ( $prefix && $prefix =~ /^\+(\d+)$/ ) {
push @orwhere, map " $_ = '$1$number' ", @fields
}